|
|
|
@ -3,20 +3,22 @@ type: docker
|
|
|
|
|
name: deploy-postgresql
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
# container deployment
|
|
|
|
|
# container deployment
|
|
|
|
|
- name: deploy-container-pgsql
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
settings:
|
|
|
|
|
IMAGENAME: mariadb:10
|
|
|
|
|
CONTAINERNAME: WF-DATABASE
|
|
|
|
|
COMMAND: create
|
|
|
|
|
# OVERWRITE: false
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_ROOT_PASSWORD:
|
|
|
|
|
from_secret: db_server
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_USER:
|
|
|
|
|
from_secret: db_user
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_PASSWORD:
|
|
|
|
|
from_secret: db_password
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_DATABASE:
|
|
|
|
|
from_secret: db_database
|
|
|
|
|
|
|
|
|
|
IMAGENAME: postgres:latest
|
|
|
|
|
CONTAINERNAME: WF-DATABASE
|
|
|
|
|
commands:
|
|
|
|
|
- create
|
|
|
|
|
- sleep 10
|
|
|
|
|
- psql -h https://codefirst.iut.uca.fr/containers/ -U adminfantasy -d wikifantasyDB -f /docker-entrypoint-initdb.d/init.sql
|
|
|
|
|
# OVERWRITE: false
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_ROOT_PASSWORD:
|
|
|
|
|
from_secret: db_server
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_USER:
|
|
|
|
|
from_secret: db_user
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_PASSWORD:
|
|
|
|
|
from_secret: db_password
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_DATABASE:
|
|
|
|
|
from_secret: db_database
|
|
|
|
|