File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM centos:centos7
2
+ RUN yum install -y wget unzip tar
3
+ ENV JAVA_HOME /opt/jdk/jre
4
+ ENV PATH $PATH:/opt/jdk/jre/bin
5
+ ENV JBOSS_DEPLOY_DIR /opt/jboss/standalone/deployments
6
+ RUN (cd /tmp && wget --progress=dot --no-check-certificate -O jdk.tar.gz --header "Cookie: oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.tar.gz && \
7
+ tar zxf jdk.tar.gz && \
8
+ mv jdk1.7.0_65 /opt/jdk && \
9
+ rm /tmp/jdk.tar.gz)
10
+ RUN wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip -O /tmp/jboss.zip && \
11
+ unzip -d /opt /tmp/jboss.zip && \
12
+ mv /opt/jboss-as-7.1.1.Final /opt/jboss && \
13
+ rm /tmp/jboss.zip
14
+ EXPOSE 8080 9990
15
+ COPY entrypoint.sh /docker-entry.sh
16
+ ENTRYPOINT ["/docker-entry.sh" ]
17
+ CMD ["" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Docker entrypoint for default config values
3
+ ADMIN_USER=${ADMIN_USER:- admin}
4
+ ADMIN_PASS=${ADMIN_PASS:- jboss}
5
+ pushd /opt/jboss > /dev/null
6
+ echo " creating admin user $ADMIN_USER "
7
+ ./bin/add-user.sh $ADMIN_USER $ADMIN_PASS
8
+ ./bin/standalone.sh -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 $*
Original file line number Diff line number Diff line change
1
+ # JBoss
2
+ JBoss AS 7.1.1
3
+
4
+ Note: this is just the runtime. You will need to add your own WAR.
You can’t perform that action at this time.
0 commit comments