Skip to content

Commit 0d64a26

Browse files
committed
Add option to create instructor docker-machine with 4GB, Fix docker image names
1 parent 5e77d9b commit 0d64a26

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

instructor/dockerfiles/ticketmonster-pgsql-wildfly/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ USER root
1313

1414
# Run customization scripts as root
1515
RUN chmod +x /opt/jboss/wildfly/customization/execute.sh
16-
RUN /opt/jboss/wildfly/customization/execute.sh standalone
16+
RUN /opt/jboss/wildfly/customization/execute.sh standalone standalone-ha.xml
1717

1818
ADD ticket-monster.war /opt/jboss/wildfly/standalone/deployments/
1919

@@ -29,5 +29,5 @@ EXPOSE 8080 9990
2929

3030
# Set the default command to run on boot
3131
# This will boot WildFly in the standalone mode and bind to external interface and enable HA
32-
CMD /opt/jboss/wildfly/bin/standalone.sh -b `hostname -i` -bmanagement `hostname -i`
32+
CMD /opt/jboss/wildfly/bin/standalone.sh -b `hostname -i` -bmanagement `hostname -i` -c standalone-ha.xml
3333

instructor/dockerfiles/ticketmonster-pgsql-wildfly/customization/commands.cli

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Mark the commands below to be run as a batch
22
batch
33

4+
# Configure mod_cluster to no use tcp advertisement
5+
/subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=advertise,value=false)
6+
/subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=proxy-list,value=${modcluster.host:modcluster}:80)
7+
48
# Add Postgres JDBC Driver as a module
59
module add --name=org.postgresql --resources=/opt/jboss/wildfly/customization/postgresql-9.4-1201.jdbc41.jar --dependencies=javax.api,javax.transaction.api
610

File renamed without changes.

instructor/readme.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ For Windows, make sure to add c:\Users\<username>\docker to your %PATH% variable
6767
This creates your instructor host which will run the complete infrastructure.
6868
[source, text]
6969
----
70-
docker-machine create --driver virtualbox mymachine
70+
docker-machine create --driver=virtualbox --virtualbox-memory=4096 mymachine
7171
----
7272

7373
## Expose the Virtual Box ports to other computer in the LAN
@@ -166,18 +166,22 @@ docker exec instructor_gitlab_1 bash -c "cd /home/git/data/repositories/root; gi
166166

167167
[source, text]
168168
----
169-
docker build -t "instructor/managed-wildfly" dockerfiles/managed-wildfly/
169+
docker build -t "instructor/wildfly-management" dockerfiles/wildfly-management/
170170
docker build -t "instructor/ticketmonster-pgsql-wildfly" dockerfiles/ticketmonster-pgsql-wildfly/
171171
----
172172

173173
## Put the managed-wildfly, ticketmonster-pgsql-wildfly, postgres and modcluster images on the local registry
174174

175175
[source, text]
176176
----
177+
# Wildfly
178+
docker pull jboss/wildfly
179+
docker tag jboss/wildfly localhost:5000/wildfly
180+
docker push localhost:5000/wildfly
177181
178182
# Managed WildFly
179-
docker tag instructor/managed-wildfly localhost:5000/managed-wildfly
180-
docker push localhost:5000/managed-wildfly
183+
docker tag instructor/wildfly-management localhost:5000/wildfly-management
184+
docker push localhost:5000/wildfly-management
181185
182186
# Ticket-monster+PGSQ+WildFly
183187
docker tag instructor/ticketmonster-pgsql-wildfly localhost:5000/ticketmonster-pgsql-wildfly

0 commit comments

Comments
 (0)