File tree Expand file tree Collapse file tree 9 files changed +25
-23
lines changed Expand file tree Collapse file tree 9 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 10
10
mv django.env.sample django.env &&
11
11
mv postgres.env.sample postgres.env &&
12
12
mv mbtiles.env.sample mbtiles.env &&
13
+ mv frontend.env.sample frontend.env &&
13
14
touch auth.env
14
15
- env :
15
16
SERVICE_KEY_BASE64 : ${{ secrets.SERVICE_KEY_BASE64 }}
Original file line number Diff line number Diff line change
1
+ name : Python Image
2
+ on : workflow_dispatch
3
+ jobs :
4
+ build :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ # build
8
+ - uses : actions/checkout@v3
9
+ - run : make python-image
10
+ # deploy
11
+ - name : Docker Hub login
12
+ uses : docker/login-action@v2
13
+ with :
14
+ username : ${{ secrets.DOCKER_USER }}
15
+ password : ${{ secrets.DOCKER_PASSWORD }}
16
+ - name : Docker push
17
+ run : make push-python
Original file line number Diff line number Diff line change 6
6
steps :
7
7
# build
8
8
- uses : actions/checkout@v3
9
- - run : >
10
- mv django.env.sample django.env &&
11
- mv postgres.env.sample postgres.env &&
12
- mv mbtiles.env.sample mbtiles.env &&
13
- touch auth.env
14
- - env :
15
- SERVICE_KEY_BASE64 : ${{ secrets.SERVICE_KEY_BASE64 }}
16
- run : echo "${SERVICE_KEY_BASE64// /}" | base64 --decode > config/firebase.json
17
9
- run : make system-image
18
10
# deploy
19
11
- name : Docker Hub login
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ services:
57
57
depends_on :
58
58
- nginx
59
59
image : chronmaps/frontend:release-prod
60
+ env_file :
61
+ - frontend.env
62
+
60
63
celery :
61
64
depends_on :
62
65
- redis
Original file line number Diff line number Diff line change 1
1
FROM chronmaps/backend:deps-python as python
2
2
3
- LABEL maintainer="Mikhail Orlov <miklergm@gmail.com>"
4
-
5
3
RUN mkdir /config /src
6
4
7
5
COPY ./project /src
Original file line number Diff line number Diff line change 1
1
FROM python:3.9.10-alpine3.15 as base
2
2
# chronmaps/backend:deps-base
3
3
4
- LABEL maintainer="Mikhail Orlov <miklergm@gmail.com>"
5
-
6
4
ENV PYTHONUNBUFFERED=1 \
7
5
PYTHONDONTWRITEBYTECODE=1 \
8
6
PYTHONFAULTHANDLER=1 \
Original file line number Diff line number Diff line change 1
1
FROM chronmaps/backend:deps-base as base
2
2
# chronmaps/backend:deps-build
3
3
4
- LABEL maintainer="Mikhail Orlov <miklergm@gmail.com>"
5
-
6
4
RUN set -ex \
7
5
&& apk add --no-cache \
8
6
postgresql-dev linux-headers pcre-dev gcc musl-dev libffi-dev alpine-sdk libressl zlib-dev jpeg-dev \
Original file line number Diff line number Diff line change 1
1
FROM chronmaps/backend:deps-build as build
2
2
# chronmaps/backend:deps-python
3
3
4
- LABEL maintainer="Mikhail Orlov <miklergm@gmail.com>"
5
-
6
4
RUN pip install "poetry==$POETRY_VERSION"
7
5
8
6
WORKDIR $PYSETUP_PATH
9
7
COPY pyproject.toml poetry.lock ./
10
8
RUN poetry install
11
9
12
- # TODO: create dev stage that runs linting etc, --no-dev in production
13
-
14
- FROM chronmaps/backend:deps-base as prod
15
-
16
- COPY --from=build $VENV_PATH $VENV_PATH
17
- COPY --from=build $PYSETUP_PATH/pyproject.toml $PYSETUP_PATH/poetry.lock ./
18
-
19
10
ENTRYPOINT /bin/sh
Original file line number Diff line number Diff line change
1
+ FLAGS_CONFIG_BASE64="e30K"
2
+ ANALYTICS_CONFIG_BASE64="eyAieW0iOiAiIiwgImdhIjogIiIgfQo="
3
+ MAPBOX_CONFIG_BASE64=""
4
+ FIREBASE_CONFIG_BASE64=""
You can’t perform that action at this time.
0 commit comments