Update to python 3.7 and add deploy policies
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: python:3.5
|
image: python:3.7
|
||||||
stage: test
|
stage: test
|
||||||
services:
|
services:
|
||||||
- postgres:latest
|
- postgres:latest
|
||||||
@@ -24,7 +24,7 @@ test:
|
|||||||
- python manage.py test
|
- python manage.py test
|
||||||
|
|
||||||
pycodestyle:
|
pycodestyle:
|
||||||
image: python:3.5
|
image: python:3.7
|
||||||
stage: lint
|
stage: lint
|
||||||
script:
|
script:
|
||||||
- pip install pycodestyle
|
- pip install pycodestyle
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
3.6.8
|
3.7.4
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.5
|
FROM python:3.7
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
ENV IS_DOCKER 1
|
ENV IS_DOCKER 1
|
||||||
RUN mkdir /code
|
RUN mkdir /code
|
||||||
|
|||||||
@@ -2,6 +2,13 @@ version: '3.4'
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:10
|
image: postgres:10
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
update_config:
|
||||||
|
order: start-first
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER_FILE=/run/secrets/DJANGO_DB_USER
|
- POSTGRES_USER_FILE=/run/secrets/DJANGO_DB_USER
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/DJANGO_DB_PASSWD
|
- POSTGRES_PASSWORD_FILE=/run/secrets/DJANGO_DB_PASSWD
|
||||||
@@ -15,6 +22,12 @@ services:
|
|||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: registry.gitlab.com/sahkoinsinoorikilta/vtmk/web2.0-backend:latest
|
image: registry.gitlab.com/sahkoinsinoorikilta/vtmk/web2.0-backend:latest
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
update_config:
|
||||||
|
order: start-first
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user