Skip to content

Commit

Permalink
Merge pull request #3012 from bcgov/feat/2596
Browse files Browse the repository at this point in the history
refactor(2808): convert keycloak provision into typescript
  • Loading branch information
junminahn committed Jun 4, 2024
2 parents 648f3a8 + a546710 commit efbd2a8
Show file tree
Hide file tree
Showing 13 changed files with 1,166 additions and 289 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ docs
helm
terraform
localdev/mnt
localdev/keycloak-provision
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/*.yaml
**/*.yml
.react-email
localdev/keycloak-provision
13 changes: 8 additions & 5 deletions localdev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@ services:
dockerfile: ./keycloak-provision/Dockerfile
environment:
KEYCLOAK_URL: http://keycloak:8080
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password # pragma: allowlist secret
REALM_NAME: platform-services
CLIENT_ID: pltsvc
CLIENT_SECRET: testsecret # pragma: allowlist secret
MASTER_ADMIN: admin
MASTER_ADMIN_PASSWORD: password # pragma: allowlist secret
AUTH_REALM_NAME: platform-services
AUTH_CLIENT_ID: pltsvc
AUTH_CLIENT_SECRET: testsecret # pragma: allowlist secret
GITOPS_CLIENT_ID: registry-gitops-ci
GITOPS_CLIENT_SECRET: testsecret # pragma: allowlist secret
ADMIN_CLIENT_ID: pltsvc-admin-cli
ADMIN_CLIENT_SECRET: testsecret # pragma: allowlist secret
PUBLIC_CLOUD_REALM_NAME: public-cloud
PUBLIC_CLOUD_CLIENT_ID: roles
PUBLIC_CLOUD_CLIENT_SECRET: testsecret # pragma: allowlist secret
depends_on:
- keycloak

Expand Down
1 change: 1 addition & 0 deletions localdev/keycloak-provision/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
build
1 change: 1 addition & 0 deletions localdev/keycloak-provision/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
build
10 changes: 5 additions & 5 deletions localdev/keycloak-provision/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

FROM node:22.2.0-alpine3.19
FROM node:22.2.0-alpine3.19 as build

WORKDIR /app
WORKDIR /app/sandbox

COPY ./keycloak-provision .
COPY ./m365proxy/mocks.json mocks.json
COPY ./m365proxy/mocks.json /app/m365proxy/mocks.json

RUN npm install --ignore-scripts
RUN npm run build

USER node

CMD ["node", "setup.js"]
CMD ["node", "build/main.js"]
Loading

0 comments on commit efbd2a8

Please sign in to comment.