Loading docker-compose-default.yml +11 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,17 @@ services: - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL #- DJANGO_SECRET_KEY="" - OIDC_RP_CLIENT_ID=<secret> - OIDC_RP_CLIENT_SECRET=<secret> - OIDC_OP_JWKS_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/jwk - OIDC_OP_AUTHORIZATION_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/authorize - OIDC_OP_TOKEN_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/token - OIDC_OP_USER_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/userinfo - LOGIN_REDIRECT_URL=https://localhost/esap-gui/login - LOGOUT_REDIRECT_URL=https://localhost/esap-gui/logout - LOGIN_REDIRECT_URL_FAILURE=https://localhost/esap-gui/error - RUCIO_HOST=https://escape-rucio.cern.ch - RUCIO_AUTH_HOST=https://escape-rucio-auth.cern.ch/ ports: - "8000:8000" #volumes: Loading services/api-gateway/run_api-gateway.sh +5 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,11 @@ cd /opt/esap-api-gateway/esap/ && # Apply migrations if any # Note: this will also indirectly wait for the DB to become up and reachable echo "Applying migrations if any..." python3 manage.py migrate --noinput --settings=esap.settings.dev python3 manage.py migrate accounts --database=accounts --settings=esap.settings.dev --no-input python3 manage.py migrate rucio --database=rucio --settings=esap.settings.dev --no-input python3 manage.py migrate ida --database=ida --settings=esap.settings.dev --no-input python3 manage.py migrate --settings=esap.settings.dev --no-input EXIT_CODE=$? echo "Exit code: $EXIT_CODE" if [[ "x$EXIT_CODE" != "x0" ]] ; then Loading services/gui/Dockerfile +4 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,10 @@ COPY sudoers /etc/sudoers RUN cd /opt && git clone https://git.astron.nl/astron-sdc/esap-gui.git RUN cd /opt/esap-gui && git pull && git checkout 2882da5a # Chenge hardcoded API URL RUN sed -i 's#http://localhost:5555/esap-api/#/esap-api/#g' /opt/esap-gui/src/contexts/GlobalContext.js RUN sed -i 's#https://sdc-dev.astron.nl/esap-api/#/esap-api/#g' /opt/esap-gui/src/contexts/GlobalContext.js RUN cd /opt/esap-gui && npm install RUN cd /opt/esap-gui && npm run build Loading services/proxy/000-default.conf +7 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,12 @@ ProxyPass / http://gui:8001/ ProxyPassReverse / http://gui:8001/ # Or, alternatively: #ProxyPass /esap-gui/ http://gui:8001/esap-gui/ #ProxyPassReverse /esap-gui/ http://gui:8001/esap-gui/ #ProxyPass /static/ http://gui:8001/static/ #ProxyPassReverse /static/ http://gui:8001/static/ </VirtualHost> Loading Loading
docker-compose-default.yml +11 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,17 @@ services: - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL #- DJANGO_SECRET_KEY="" - OIDC_RP_CLIENT_ID=<secret> - OIDC_RP_CLIENT_SECRET=<secret> - OIDC_OP_JWKS_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/jwk - OIDC_OP_AUTHORIZATION_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/authorize - OIDC_OP_TOKEN_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/token - OIDC_OP_USER_ENDPOINT=https://iam-escape.cloud.cnaf.infn.it/userinfo - LOGIN_REDIRECT_URL=https://localhost/esap-gui/login - LOGOUT_REDIRECT_URL=https://localhost/esap-gui/logout - LOGIN_REDIRECT_URL_FAILURE=https://localhost/esap-gui/error - RUCIO_HOST=https://escape-rucio.cern.ch - RUCIO_AUTH_HOST=https://escape-rucio-auth.cern.ch/ ports: - "8000:8000" #volumes: Loading
services/api-gateway/run_api-gateway.sh +5 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,11 @@ cd /opt/esap-api-gateway/esap/ && # Apply migrations if any # Note: this will also indirectly wait for the DB to become up and reachable echo "Applying migrations if any..." python3 manage.py migrate --noinput --settings=esap.settings.dev python3 manage.py migrate accounts --database=accounts --settings=esap.settings.dev --no-input python3 manage.py migrate rucio --database=rucio --settings=esap.settings.dev --no-input python3 manage.py migrate ida --database=ida --settings=esap.settings.dev --no-input python3 manage.py migrate --settings=esap.settings.dev --no-input EXIT_CODE=$? echo "Exit code: $EXIT_CODE" if [[ "x$EXIT_CODE" != "x0" ]] ; then Loading
services/gui/Dockerfile +4 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,10 @@ COPY sudoers /etc/sudoers RUN cd /opt && git clone https://git.astron.nl/astron-sdc/esap-gui.git RUN cd /opt/esap-gui && git pull && git checkout 2882da5a # Chenge hardcoded API URL RUN sed -i 's#http://localhost:5555/esap-api/#/esap-api/#g' /opt/esap-gui/src/contexts/GlobalContext.js RUN sed -i 's#https://sdc-dev.astron.nl/esap-api/#/esap-api/#g' /opt/esap-gui/src/contexts/GlobalContext.js RUN cd /opt/esap-gui && npm install RUN cd /opt/esap-gui && npm run build Loading
services/proxy/000-default.conf +7 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,12 @@ ProxyPass / http://gui:8001/ ProxyPassReverse / http://gui:8001/ # Or, alternatively: #ProxyPass /esap-gui/ http://gui:8001/esap-gui/ #ProxyPassReverse /esap-gui/ http://gui:8001/esap-gui/ #ProxyPass /static/ http://gui:8001/static/ #ProxyPassReverse /static/ http://gui:8001/static/ </VirtualHost> Loading