This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Modify Dockerfile for Keycloak Quarkus * Fix Copy * Add extra image for Admin-IAM * Fix CI Job Fix Dockerfile * Fix Dockerfile * Fix Dockerfile * Fix Dockerfile * Update Image Tag for Admin Iam * Add Theme-Property Files for Quicktest Theme * Update Dockerfile
- Loading branch information
Showing
9 changed files
with
44 additions
and
1,525 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 |
---|---|---|
@@ -1,25 +1,29 @@ | ||
FROM quay.io/keycloak/keycloak:15.1.0 | ||
ARG IAM_FLAVOUR=public | ||
FROM quay.io/keycloak/keycloak:20.0.3 as base-image | ||
|
||
ARG WORK_DIR=/build | ||
WORKDIR ${WORK_DIR} | ||
# Enables Features for Admin Flavour of IAM Image | ||
FROM base-image as builder-admin | ||
ENV KC_FEATURES_ENABLED=admin2,admin-api | ||
|
||
COPY . ${WORK_DIR}/ | ||
# Disable Features for Public Flavour of IAM Image | ||
FROM base-image as builder-public | ||
ENV KC_FEATURES_DISABLED=admin,admin2,admin-api | ||
|
||
RUN mkdir /opt/jboss/keycloak/themes/cwa && \ | ||
mkdir /opt/jboss/keycloak/themes/quick-test && \ | ||
cp -r /opt/jboss/keycloak/themes/base/* /opt/jboss/keycloak/themes/cwa/ && \ | ||
cp -r ${WORK_DIR}/src/themes/cwa/login /opt/jboss/keycloak/themes/cwa/ && \ | ||
cp -r ${WORK_DIR}/src/themes/cwa/account /opt/jboss/keycloak/themes/cwa/ && \ | ||
cp -r /opt/jboss/keycloak/themes/base/* /opt/jboss/keycloak/themes/quick-test/ && \ | ||
cp -r ${WORK_DIR}/src/themes/quick-test/login /opt/jboss/keycloak/themes/quick-test/ && \ | ||
cp -r ${WORK_DIR}/src/themes/quick-test/account /opt/jboss/keycloak/themes/quick-test/ && \ | ||
cp ${WORK_DIR}/src/standalone/configuration/standalone-ha.xml /opt/jboss/keycloak/standalone/configuration/standalone-ha.xml | ||
FROM builder-${IAM_FLAVOUR} as builder | ||
WORKDIR /opt/keycloak | ||
ENV KC_HEALTH_ENABLED=true | ||
ENV KC_METRICS_ENABLED=false | ||
ENV KC_CACHE=ispn | ||
ENV KC_CACHE_STACK=kubernetes | ||
ENV KC_DB=postgres | ||
COPY src/themes/cwa /opt/keycloak/themes/cwa | ||
COPY src/themes/quick-test /opt/keycloak/themes/quick-test | ||
RUN /opt/keycloak/bin/kc.sh build | ||
|
||
EXPOSE 8080 | ||
EXPOSE 8443 | ||
EXPOSE 7080 | ||
EXPOSE 7443 | ||
FROM base-image | ||
COPY --from=builder /opt/keycloak/ /opt/keycloak/ | ||
|
||
ENTRYPOINT [ "/opt/jboss/tools/docker-entrypoint.sh" ] | ||
EXPOSE 8443 | ||
|
||
CMD ["-b", "0.0.0.0"] | ||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] | ||
CMD ["start", "--optimized"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.