Skip to content
Snippets Groups Projects
Commit cc398312 authored by Saifuddin Mohammad's avatar Saifuddin Mohammad Committed by Nikos Filinis
Browse files

Merge Integration to Main

parent adcb0e21
No related branches found
No related tags found
1 merge request!3Merge Integration to Main
default:
tags:
- origin:eclipse
stages:
- build
variables:
FLASK_USERNAME: "admin"
FLASK_PASSWORD: "admin"
DB_USER: "root"
DB_PASSWORD: "password"
DB_HOST: "localhost"
DB_NAME: "smo"
REALM_NAME: "nephele"
CLIENT_ID: "flask-backend"
KEYCLOAK_URL: "http://localhost:8080"
FORCE_HTTPS: "False"
build-frontend:
stage: build
image: node:16-alpine
script:
- cd frontend
- npm install
- npm run build
artifacts:
paths:
- frontend/dist/spa
build-backend:
stage: build
image: smilernd/keycloak:latest
script:
- export PATH="/builds/.local/bin:$PATH"
- /opt/keycloak/entrypoint.sh &
- until curl -s http://localhost:8080/auth > /dev/null; do echo "Waiting for Keycloak..."; sleep 7; done
- cd backend
- pip install --trusted-host pypi.python.org -r requirements.txt
- export CLIENT_SECRET=$(cat /opt/keycloak/client_secret.txt)
- flask run --host=0.0.0.0 &> flask.log &
- sleep 7
- cat flask.log
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment