File tree Expand file tree Collapse file tree
dockerfiles/managed-wildfly Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Use latest jboss/wildfly
2+ FROM jboss/wildfly
3+
4+ MAINTAINER "Rafael Benevides" <benevides@redhat.com>
5+
6+ # Create admin user
7+ RUN /opt/jboss/wildfly/bin/add-user.sh -u admin -p docker#admin --silent
8+
9+ USER jboss
10+
11+ # Expose the ports we're interested in
12+ EXPOSE 8080 9990
13+
14+ # Set the default command to run on boot
15+ # This will boot WildFly in the standalone mode and bind to external interface and enable HA
16+ CMD /opt/jboss/wildfly/bin/standalone.sh -b `hostname -i` -bmanagement `hostname -i`
17+
Original file line number Diff line number Diff line change @@ -162,21 +162,22 @@ docker exec instructor_gitlab_1 bash -c "cd /home/git/data/repositories/root; gi
162162
163163 cp ticket-monster/demo/target/ticket-monster.war dockerfiles/ticketmonster-pgsql-wildfly/
164164
165- ## Build ticketmonster-pgsql-widlfly image
165+ ## Build managed-widlfly and ticketmonster-pgsql-widlfly images
166166
167167[source, text]
168168----
169+ docker build -t "instructor/managed-wildfly" dockerfiles/managed-wildfly/
169170docker build -t "instructor/ticketmonster-pgsql-wildfly" dockerfiles/ticketmonster-pgsql-wildfly/
170171----
171172
172- ## Put the wildfly, ticketmonster-pgsql-wildfly, postgres and modcluster images on the local registry
173+ ## Put the managed- wildfly, ticketmonster-pgsql-wildfly, postgres and modcluster images on the local registry
173174
174175[source, text]
175176----
176- # Wildfly
177- docker pull jboss/wildfly
178- docker tag jboss/ wildfly localhost:5000/wildfly
179- docker push localhost:5000/wildfly
177+
178+ # Managed WildFly
179+ docker tag instructor/managed- wildfly localhost:5000/managed- wildfly
180+ docker push localhost:5000/managed- wildfly
180181
181182# Ticket-monster+PGSQ+WildFly
182183docker tag instructor/ticketmonster-pgsql-wildfly localhost:5000/ticketmonster-pgsql-wildfly
You can’t perform that action at this time.
0 commit comments