Skip to content

Commit

Permalink
Fix circle ci and Dockerfile update
Browse files Browse the repository at this point in the history
1. Circle: update orb version, cause the previous one deprecated
2. Circle: explicitly set python 3.11 version to use for test and build
3. Dockerfile: update debian version to last one
4. Dockerfile: update UWSGI cause previous doesn't support python 3.11
  • Loading branch information
nkiryanov committed Nov 10, 2023
1 parent 86f8190 commit 7d97177
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2.1
orbs:
docker: circleci/docker@1.7.0
docker: circleci/docker@2.4.0

jobs:
build:
docker:
- image: cimg/python:3.10
- image: cimg/python:3.11

steps:
- checkout
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:

coverage:
docker:
- image: cimg/python:3.10
- image: cimg/python:3.11
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -73,5 +73,6 @@ workflows:
image: f213/django
path: testproject/django
docker-context: testproject/django
extra_build_args: '--build-arg PYTHON_VERSION=3.11'
deploy: false
attach-at: .
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PYTHON_VERSION
FROM python:${PYTHON_VERSION}-slim-bullseye
FROM python:${PYTHON_VERSION}-slim-bookworm
LABEL maintainer="[email protected]"

LABEL com.datadoghq.ad.logs='[{"source": "uwsgi", "service": "django"}]'
Expand All @@ -9,9 +9,9 @@ ENV DEBIAN_FRONTEND noninteractive

ENV STATIC_ROOT /static

ENV _UWSGI_VERSION 2.0.20
ENV _UWSGI_VERSION 2.0.23

RUN echo deb http://deb.debian.org/debian bullseye contrib non-free > /etc/apt/sources.list.d/debian-contrib.list \
RUN echo deb http://deb.debian.org/debian bookworm contrib non-free > /etc/apt/sources.list.d/debian-contrib.list \
&& apt update \
&& apt --no-install-recommends install -y gettext locales-all wget \
imagemagick tzdata wait-for-it build-essential \
Expand Down

0 comments on commit 7d97177

Please sign in to comment.