Skip to content

Commit

Permalink
Merge pull request #45 from bcgsc/feature/kc-in-docker-compose
Browse files Browse the repository at this point in the history
Feature/kc in docker compose
  • Loading branch information
creisle authored Feb 24, 2022
2 parents 8db6360 + b0cb1a8 commit 77e0087
Show file tree
Hide file tree
Showing 15 changed files with 2,299 additions and 2,449 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/compose-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test-compose
on:
- workflow_dispatch
- pull_request

jobs:
docker:
runs-on: ubuntu-latest
name: test docker-compose start
steps:
- uses: actions/checkout@v2
- run: mkdir -p databases/{postgres,orientdb}/{backup,data}
- run: mkdir keys
- run: docker-compose -f "docker-compose.dev.yml" up -d --build
- run: bash tests/test-docker-compose.sh
- run: docker-compose -f "docker-compose.dev.yml" down
if: always()
2 changes: 1 addition & 1 deletion .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- name: build the keycloak docker container
run: |
docker build --file Dockerfile.auth --tag bcgsc/pori-auth .
docker build --file demo/Dockerfile.auth --tag bcgsc/pori-auth .
docs:
name: build docs
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile.auth → demo/Dockerfile.auth
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM jboss/keycloak:12.0.2
FROM jboss/keycloak:16.1.1
USER root
RUN mkdir -p /tmp/realm_data/
COPY demo/kc_setup_keyfile.sh /scripts/kc_setup_keyfile.sh
RUN chmod a+x /scripts/kc_setup_keyfile.sh
COPY demo/kc_realm_export.json /tmp/realm_data/kc_realm_export.json
ENV KEYCLOAK_IMPORT=/tmp/realm_data/kc_realm_export.json
Loading

0 comments on commit 77e0087

Please sign in to comment.