Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
Adds variables to keycloak docker image and update
Browse files Browse the repository at this point in the history
Updates keycloak image to keycloak version 1.9.5.Final
Adds variables to set Manager host and port
Adds variables to set Gateway host and port
Merges realm json files into one template file
  • Loading branch information
mijaros committed Jun 8, 2016
1 parent ca87089 commit 51aa4dd
Show file tree
Hide file tree
Showing 8 changed files with 2,808 additions and 2,774 deletions.
17 changes: 16 additions & 1 deletion tools/docker/keycloak/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
FROM jboss/keycloak:1.9.0.Final
FROM jboss/keycloak:1.9.5.Final

ENV JAVA_OPTS "-Djava.security.egd=file:///dev/urandom"
ENV REALM_DIR $JBOSS_HOME/realms
ENV REALM_FILE $REALM_DIR/apiman-realm.json
ENV REALM_FILE_TMPL $REALM_DIR/apiman-realm.json.tmpl
ENV KC_USER_NAME "admin"
ENV KC_USER_PASSWORD "admin123!"
ENV MANAGER_HOST "localhost"
ENV GATEWAY_HOST "localhost"
ENV MANAGER_PORT "8080"
ENV GATEWAY_PORT "8080"
ENV MANAGER_HTTPS_PORT "8443"
ENV GATEWAY_HTTPS_PORT "8443"

# Add wrapping docker entrypoint
ADD scripts/docker-entrypoint.sh ${JBOSS_HOME}/bin/docker-entrypoint.sh

# Add realm definition file
ADD realms $REALM_DIR

# change owner of newely created directory and install gettext package for envsubst
USER root
RUN chown -R jboss:jboss ${REALM_DIR} &&\
yum update -y &&\
yum install -y gettext
USER jboss

ENTRYPOINT ["sh", "/opt/jboss/keycloak/bin/docker-entrypoint.sh"]
Loading

0 comments on commit 51aa4dd

Please sign in to comment.