-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from QCDIS/163-vreapiv108-beta-crashes-with-m…
…odulenotfounderror-no-module-named-django-keycloak-auth fix 163, add image testing, enable dependabot on vreapi
- Loading branch information
Showing
9 changed files
with
103 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,17 +32,30 @@ jobs: | |
environment: ${{ inputs.environment }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build docker | ||
run: | | ||
cd $DOCKER_FOLDER && docker build . --file Dockerfile -t $TAG --build-arg "NODE_ENV=${{ inputs.environment }}" | ||
- name: Run docker compose | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: "${{ inputs.docker_folder }}/docker-compose.yaml" | ||
|
||
- name: Wait for healthy app | ||
uses: raschmitt/wait-for-healthy-container/@v1 | ||
with: | ||
container-name: app | ||
timeout: 120 | ||
|
||
- name: Login to github Registry | ||
if: ${{ inputs.push }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: "https://index.docker.io/v1/" | ||
username: ${{ secrets.docker_username }} | ||
password: ${{ secrets.docker_password }} | ||
|
||
- name: Push image to container Registry | ||
if: ${{ inputs.push }} | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
app: | ||
image: vreapp | ||
container_name: app | ||
env_file: | ||
- .env.test | ||
environment: | ||
- AUTH0_ID= | ||
- AUTH0_ISSUER= | ||
- SECRET=secret | ||
ports: | ||
- '127.0.0.1:3000:3000' | ||
healthcheck: | ||
test: | | ||
wget http://localhost:3000/vreapp/ -O - | ||
interval: 5s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
services: | ||
db: | ||
image: postgis/postgis:15-3.4 | ||
environment: | ||
- POSTGRES_DB=vrepaas | ||
- POSTGRES_PASSWORD=vrepaas | ||
- POSTGRES_USER=vrepaas | ||
|
||
app: | ||
image: vreapi | ||
container_name: app | ||
environment: | ||
- DB_HOST=db | ||
- DB_NAME=vrepaas | ||
- DB_PASSWORD=vrepaas | ||
- DB_PORT=5432 | ||
- DB_USER=vrepaas | ||
- ALLOWED_HOST=* | ||
- ARGO_NAMESPACE= | ||
- ARGO_URL= | ||
- BASE_PATH=/vre-api-test | ||
- CALL_BACK_URL= | ||
- CORS_ALLOWED_ORIGIN_REGEXES= | ||
- DJANGO_SETTINGS_MODULE=vreapis.settings.development | ||
- [email protected] | ||
- DJANGO_SUPERUSER_USERNAME=admin | ||
- DJANGO_USERNAME=user | ||
- KEYCLOAK_CLIENT_ID= | ||
- KEYCLOAK_REALM= | ||
- KEYCLOAK_SERVER_URL= | ||
- TRUSTED_ORIGINS=http://localhost | ||
- ARGO_API_TOKEN= | ||
- DJANGO_PASSWORD=user | ||
- DJANGO_SUPERUSER_PASSWORD=admin | ||
- DJANGO_TOKEN=token | ||
- KEYCLOAK_CLIENT_SECRET_KEY= | ||
- SECRET_KEY=secret | ||
ports: | ||
- '127.0.0.1:8000:8000' | ||
healthcheck: | ||
test: | | ||
curl --fail http://localhost:8000/vre-api-test/api/ | ||
interval: 5s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
django>=4.0.0,<4.1.0 | ||
djangorestframework | ||
djangorestframework-gis~=1.0.0 | ||
django-filter~=22.1.0 | ||
whitenoise | ||
django-keycloak-auth | ||
python-keycloak | ||
gunicorn | ||
pyyaml | ||
requests | ||
django-dotenv | ||
django-cors-headers | ||
django-extensions | ||
django==4.0.10 | ||
djangorestframework==3.14.0 | ||
djangorestframework-gis==1.0 | ||
django-filter==22.1 | ||
whitenoise==6.5.0 | ||
django-keycloak-auth==0.9.6 | ||
python-keycloak==3.3.0 | ||
gunicorn==21.2.0 | ||
pyyaml==6.0.1 | ||
requests==2.31.0 | ||
django-dotenv==1.4.2 | ||
django-cors-headers==4.2.0 | ||
django-extensions==3.2.3 | ||
psycopg2==2.9.5 | ||
django-probes~=1.7.0 | ||
django-probes==1.7.0 |