Last active
January 28, 2016 10:30
-
-
Save maslick/f8f9ee6f8c8fd3f2a0e1 to your computer and use it in GitHub Desktop.
Wildfly 8.2.0 with keycloak adapter 1.3.1
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
FROM jboss/wildfly:8.2.0.Final | |
ENV KEYCLOAK_VERSION 1.3.1.Final | |
WORKDIR /opt/jboss/wildfly | |
RUN curl -L https://sourceforge.net/projects/keycloak/files/$KEYCLOAK_VERSION/adapters/keycloak-wf8-adapter-dist-$KEYCLOAK_VERSION.tar.gz | tar zx | |
WORKDIR /opt/jboss | |
# Standalone.xml modifications. | |
RUN sed -i -e 's/<extensions>/&\n <extension module="org.keycloak.keycloak-adapter-subsystem"\/>/' $JBOSS_HOME/standalone/configuration/standalone.xml && \ | |
sed -i -e 's/<profile>/&\n <subsystem xmlns="urn:jboss:domain:keycloak:1.1"\/>/' $JBOSS_HOME/standalone/configuration/standalone.xml && \ | |
sed -i -e 's/<security-domains>/&\n <security-domain name="keycloak">\n <authentication>\n <login-module code="org.keycloak.adapters.jboss.KeycloakLoginModule" flag="required"\/>\n <\/authentication>\n <\/security-domain>/' $JBOSS_HOME/standalone/configuration/standalone.xml | |
RUN /opt/jboss/wildfly/bin/add-user.sh admin Admin#70365 --silent | |
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to deploy services to the running Wildfly application server, add this to your project's
pom.xml
:then run: