FROM ivonet/wildfly-admin:10.0.0.Final MAINTAINER IvoNet ENV KEYCLOAK_VERSION 2.3.0.Final WORKDIR /opt/jboss/wildfly RUN curl -L http://downloads.jboss.org/keycloak/$KEYCLOAK_VERSION/adapters/keycloak-oidc/keycloak-wildfly-adapter-dist-$KEYCLOAK_VERSION.tar.gz | tar zxv WORKDIR /opt/jboss # modifying standalone.xml to wire in the keycloak security provider RUN sed -i -e 's//&\n /' $JBOSS_HOME/standalone/configuration/standalone.xml && \ sed -i -e 's//&\n /' $JBOSS_HOME/standalone/configuration/standalone.xml && \ sed -i -e 's//&\n \n \n \n <\/authentication>\n <\/security-domain>/' $JBOSS_HOME/standalone/configuration/standalone.xml EXPOSE 8080 9990