Skip to content
Snippets Groups Projects
Commit ceada10c authored by Nico Vermaas's avatar Nico Vermaas
Browse files

ci/cd and docker - deploy in sdc-dev

parent 31ced332
No related branches found
No related tags found
No related merge requests found
Pipeline #33294 passed with warnings
...@@ -50,9 +50,8 @@ docker-deploy-master-test: ...@@ -50,9 +50,8 @@ docker-deploy-master-test:
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
script: script:
## deploy the docker-compose file and use it to spin up the containers ## deploy the docker-compose file and use it to spin up the containers
#- scp docker/docker-compose-dev-cd.yml sdc@sdc-dev.astron.nl:/docker_compose/ldvspec/docker-compose-dev-cd.yml - scp docker/docker-compose-dev-cd.yml sdc@sdc-dev.astron.nl:/docker_compose/ldvspec/docker-compose-dev-cd.yml
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY" - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY"
#- docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE"" - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p ldvspec -f /docker_compose/ldvspec/docker-compose-dev-cd.yml up -d" - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p ldvspec -f /docker_compose/ldvspec/docker-compose-dev-cd.yml up -d"
- echo "Application deployed" - echo "Application deployed"
......
...@@ -11,15 +11,11 @@ services: ...@@ -11,15 +11,11 @@ services:
postgres-ldvspec: postgres-ldvspec:
image: postgres:14 image: postgres:14
container_name: postgres-ldvspec container_name: postgres-ldvspec
ports: #ports:
- "5432:5432" # - "5432:5432"
networks: networks:
- traefik_proxy - traefik_proxy
- ldv_network - ldv_network
environment:
POSTGRES_PASSWORD: "secret"
POSTGRES_USER: "postgres"
POSTGRES_DB: "ldv-spec-db"
env_file: env_file:
- $HOME/shared/ldvspec.env - $HOME/shared/ldvspec.env
volumes: volumes:
...@@ -28,7 +24,7 @@ services: ...@@ -28,7 +24,7 @@ services:
ldvspec: ldvspec:
container_name: ldvspec container_name: ldvspec
image: git.astron.nl:5000/astron-sdc/ldvspec:latest image: git.astron.nl:5000/astron-sdc/ldv-specification:latest
expose: expose:
- "8000" - "8000"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment