Commit 96b61f26 authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

adopt run.sh and docker-compose.yml to new config files

parent 9b7edb1b
......@@ -6,9 +6,6 @@ When everything is working smooth, it should be integrated into the meta repo.
## TODOs:
* mv container-config/nginx/default.conf to container-config/nging.conf
* add container config files to .gitignore
* add container config sample files and use them in init
* create aura-config.sample.yaml and remove aura-config.yaml and put it into .gitignore
* create options for run.sh
* create setting to switch between prod and dev setups
......
......@@ -96,7 +96,7 @@ services:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
volumes:
- ./container-config/nginx:/etc/nginx/conf.d
- ./container-config/nginx.conf:/etc/nginx/conf.d/default.conf
- ./dashboard/dist_docker:/usr/share/nginx/html
networks:
- auranet
......
......@@ -92,6 +92,8 @@ init_steering () {
}
init_tank () {
echo "Create new tank.yaml from sample file"
cp container-config/tank.sample.yaml container-config/tank.yaml
echo "Write OIDC info to tank.yaml"
docker run --rm -v "${PWD}"/container-config/tank.yaml:/workdir/tank.yaml mikefarah/yq eval ".auth.oidc.client-id = \"$TANK_CLIENT_ID\"" -i tank.yaml
docker run --rm -v "${PWD}"/container-config/tank.yaml:/workdir/tank.yaml mikefarah/yq eval ".auth.oidc.client-secret = \"$TANK_CLIENT_SECRET\"" -i tank.yaml
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment