Skip to content

Instantly share code, notes, and snippets.

@takuya-andou takuya-andou/Dockerfile Secret
Last active Feb 25, 2019

Embed
What would you like to do?
ドルフィン
FROM jboss/base-jdk:8
MAINTAINER Takuya Ando <biz@takuya-andou.com>
# change version for Open Dolphin
ENV WILDFLY_VERSION 9.0.1.Final
# change SHA1 for ver 9.0.1.Final (REF https://hub.docker.com/r/cvugrinec/wildfly/ )
ENV WILDFLY_SHA1 abe037d5d1cb97b4d07fbfe59b6a1345a39a9ae5
ENV JBOSS_HOME /opt/jboss/wildfly
USER root
RUN cd $HOME \
&& curl -O https://download.jboss.org/wildfly/$WILDFLY_VERSION/wildfly-$WILDFLY_VERSION.tar.gz \
&& sha1sum wildfly-$WILDFLY_VERSION.tar.gz | grep $WILDFLY_SHA1 \
&& tar xf wildfly-$WILDFLY_VERSION.tar.gz \
&& mv $HOME/wildfly-$WILDFLY_VERSION $JBOSS_HOME \
&& rm wildfly-$WILDFLY_VERSION.tar.gz \
&& chown -R jboss:0 ${JBOSS_HOME} \
&& chmod -R g+rw ${JBOSS_HOME}
ENV LAUNCH_JBOSS_IN_BACKGROUND true
USER jboss
EXPOSE 8080 5002
ADD modules /opt/jboss/wildfly/modules/
ADD standalone-dolphin.xml /opt/jboss/wildfly/standalone/configuration/
ADD opendolphin-server-2.7.0.war /opt/jboss/wildfly/standalone/deployments/
ADD custom.properties /opt/jboss/wildfly/
ADD templates /opt/jboss/wildfly/templates
ADD docker-entrypoint.sh /opt/jboss/wildfly/
ENTRYPOINT [ "/opt/jboss/wildfly/docker-entrypoint.sh" ]
CMD [ "0.0.0.0" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.