Fix docker-compose and update README

This commit is contained in:
Nicola Tarocco 2021-07-09 16:09:33 +02:00
parent 93c581090b
commit ae52961361
2 changed files with 29 additions and 0 deletions

View file

@ -130,6 +130,24 @@ pytest ./cara
s2i build file://$(pwd) --copy --keep-symlinks --context-dir ./app-config/nginx/ centos/nginx-112-centos7 cara-nginx-app
s2i build file://$(pwd) --copy --keep-symlinks --context-dir ./ centos/python-36-centos7 cara-webservice
s2i build file://$(pwd) --copy --keep-symlinks --context-dir ./app-config/auth-service centos/python-36-centos7 auth-service
```
Get the client secret from the CERN Application portal for the `cara-test` app. See [CERN-SSO-integration](#CERN-SSO-integration) for more info.
```
read CLIENT_SECRET
```
Define some env vars (copy/paste):
```
export COOKIE_SECRET=$(openssl rand -hex 50)
export OIDC_SERVER=https://auth.cern.ch/auth
export OIDC_REALM=CERN
export CLIENT_ID=cara-test
export CLIENT_SECRET
```
Run docker-compose:
```
cd app-config
docker-compose up
```

View file

@ -10,6 +10,15 @@ services:
environment:
- COOKIE_SECRET
- APP_NAME=cara-webservice
- CARA_CALCULATOR_PREFIX=/calculator-cern
- CARA_THEME=cara/apps/calculator/themes/cern
cara-calculator-open:
image: cara-webservice
environment:
- COOKIE_SECRET
- APP_NAME=cara-webservice
- CARA_CALCULATOR_PREFIX=/calculator-open
auth-service:
image: auth-service
@ -27,6 +36,8 @@ services:
depends_on:
cara-webservice:
condition: service_started
cara-calculator-open:
condition: service_started
cara-app:
condition: service_started
auth-service: