Skip to content
Snippets Groups Projects
Commit 55b408ce authored by Pernille Welle-Watne's avatar Pernille Welle-Watne
Browse files

this is goind to fail, but i wanted to try

parent 87175ab6
No related branches found
No related tags found
5 merge requests!9Error 1,!7Boundary tests,!6Task 2 coverage test,!5Task 2 coverage test,!3Google calendar
...@@ -10,6 +10,57 @@ test: ...@@ -10,6 +10,57 @@ test:
- pip install -r requirements.txt - pip install -r requirements.txt
- python manage.py test - python manage.py test
build:
stage: build
image: docker:stable
services:
backend:
container_name: django_group_${GROUPID}
build:
context: backend/secfit/
dockerfile: Dockerfile
args:
DJANGO_SUPERUSER_USERNAME: "${DJANGO_SUPERUSER_USERNAME}"
DJANGO_SUPERUSER_PASSWORD: "${DJANGO_SUPERUSER_PASSWORD}"
DJANGO_SUPERUSER_EMAIL: "${DJANGO_SUPERUSER_EMAIL}"
environment:
- GROUPID=${GROUPID}
networks:
backend_bridge:
ipv4_address: 10.${GROUPID}.0.4
application:
container_name: node_group_${GROUPID}
build:
context: frontend/
dockerfile: Dockerfile
args:
GROUPID: ${GROUPID}
DOMAIN: ${DOMAIN}
URL_PREFIX: ${URL_PREFIX}
PORT_PREFIX: ${PORT_PREFIX}
networks:
backend_bridge:
ipv4_address: 10.${GROUPID}.0.5
web:
container_name: nginx_group_${GROUPID}
build:
context: .
dockerfile: Dockerfile
ports:
- ${PORT_PREFIX}${GROUPID}:80
environment:
- GROUPID=${GROUPID}
- PORT_PREFIX=${PORT_PREFIX}
networks:
backend_bridge:
ipv4_address: 10.${GROUPID}.0.6
script:
- docker build
staging: staging:
type: deploy type: deploy
image: ruby image: ruby
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment