This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update makefiles. makefile for web points to right direction for the …
…docker container. makefiles specify GOPATH. added keycloak's base image dockerfile
- Loading branch information
Showing
25 changed files
with
503 additions
and
68 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM jboss/base-jdk:8 | ||
|
||
ENV KEYCLOAK_VERSION 4.0.0.Beta1 | ||
# Enables signals getting passed from startup script to JVM | ||
# ensuring clean shutdown when container is stopped. | ||
ENV LAUNCH_JBOSS_IN_BACKGROUND 1 | ||
ENV PROXY_ADDRESS_FORWARDING false | ||
USER root | ||
|
||
RUN yum install -y epel-release && yum install -y jq && yum clean all | ||
|
||
USER jboss | ||
|
||
RUN cd /opt/jboss/ && curl -L https://downloads.jboss.org/keycloak/$KEYCLOAK_VERSION/keycloak-$KEYCLOAK_VERSION.tar.gz | tar zx && mv /opt/jboss/keycloak-$KEYCLOAK_VERSION /opt/jboss/keycloak | ||
|
||
ADD docker-entrypoint.sh /opt/jboss/ | ||
|
||
ADD cli /opt/jboss/keycloak/cli | ||
RUN cd /opt/jboss/keycloak && bin/jboss-cli.sh --file=cli/standalone-configuration.cli && rm -rf /opt/jboss/keycloak/standalone/configuration/standalone_xml_history | ||
RUN cd /opt/jboss/keycloak && bin/jboss-cli.sh --file=cli/standalone-ha-configuration.cli && rm -rf /opt/jboss/keycloak/standalone/configuration/standalone_xml_history | ||
|
||
ENV JDBC_POSTGRES_VERSION 42.1.4 | ||
ENV JDBC_MYSQL_VERSION 5.1.18 | ||
|
||
ADD databases/change-database.sh /opt/jboss/keycloak/bin/change-database.sh | ||
|
||
RUN mkdir -p /opt/jboss/keycloak/modules/system/layers/base/com/mysql/jdbc/main; cd /opt/jboss/keycloak/modules/system/layers/base/com/mysql/jdbc/main && curl -O http://central.maven.org/maven2/mysql/mysql-connector-java/$JDBC_MYSQL_VERSION/mysql-connector-java-$JDBC_MYSQL_VERSION.jar | ||
ADD databases/mysql/module.xml /opt/jboss/keycloak/modules/system/layers/base/com/mysql/jdbc/main/module.xml | ||
|
||
RUN mkdir -p /opt/jboss/keycloak/modules/system/layers/base/org/postgresql/jdbc/main; cd /opt/jboss/keycloak/modules/system/layers/base/org/postgresql/jdbc/main; curl -L http://central.maven.org/maven2/org/postgresql/postgresql/$JDBC_POSTGRES_VERSION/postgresql-$JDBC_POSTGRES_VERSION.jar > postgres-jdbc.jar | ||
ADD databases/postgres/module.xml /opt/jboss/keycloak/modules/system/layers/base/org/postgresql/jdbc/main | ||
|
||
ENV JBOSS_HOME /opt/jboss/keycloak | ||
ENV LANG en_US.UTF-8 | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT [ "/opt/jboss/docker-entrypoint.sh" ] | ||
|
||
CMD ["-b", "0.0.0.0"] |
Oops, something went wrong.