Skip to content

Commit a0abe21

Browse files
committed
initial commit
0 parents  commit a0abe21

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 [""]

entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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 $*

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# JBoss
2+
JBoss AS 7.1.1
3+
4+
Note: this is just the runtime. You will need to add your own WAR.

0 commit comments

Comments
 (0)