@@ -35,6 +35,15 @@ https://get.docker.com/builds/Windows/i386/docker-latest.exe
3535And save to c:/Users/<username>/docker/docker.exe
3636----
3737
38+ ## Install Docker compose
39+
40+ [source, text]
41+ ----
42+ # Linux / MacOS
43+ curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
44+ chmod +x /usr/local/bin/docker-compose
45+ ----
46+
3847## Install Docker-machine
3948
4049Install the Docker machine client for your environment: https://github.com/docker/machine/releases/[latest releases]
@@ -94,17 +103,7 @@ $ # to /var/lib/boot2docker/profile
94103$ sudo /etc/init.d/docker restart
95104----
96105
97-
98- ## Run local-registry
99-
100- Instructors should run a local registry to make all images locally available to attendees
101-
102- [source, text]
103- ----
104- docker run -d --name="docker-registry" -p 5000:5000 -v /registry:/tmp/registry-dev registry:2.0
105- ----
106-
107- ##Convert the Attendees instructions to HTML.
106+ ## Convert the Attendees instructions to HTML.
108107
109108This instructions will be placed inside the Lab HTTPD Server during the image build
110109
@@ -113,47 +112,37 @@ This instructions will be placed inside the Lab HTTPD Server during the image bu
113112asciidoctor ../attendees/readme.adoc -o lab-httpd-server/index.html
114113----
115114
116- ## Build the Lab HTTPD Server image
117-
118- Make sure to change to the cloned repository/instructor first.
115+ ## Start the Instructor environment
119116
120117[source, text]
121118----
122- docker build -t lab-httpd-server:latest lab-httpd-server/.
119+ docker-compose up -d
123120----
124121
125- ## Run Http server with downloadables
126-
127- Run the Apache HTTPD server for attendees to download boot2docker iso image and Virtuabox binaries.
122+ Test if the servers are running:
128123
129- [source, text]
130- ----
131- docker run -d --name="lab-httpd-server" -p 8082:80 lab-httpd-server
132- ----
124+ Access the docker registry [http://localhost:5000/v2/]
125+ Access the nexus console [http://localhost:8081/].
126+ Access the webserver [http://localhost:8082]
133127
134- If you run into errors on Windows (eg, no such file or exec format error, check the line ending in the run-apache.sh).
135128
136- Check if the server is running: http://localhost:8082/
137-
138- NOTE: Make sure to check your firewall settings. Attendees should be able to access this machine with your local IP.
139-
140- ## Run Nexus On the instructor machine
141-
142- Default credentials are: admin / admin123
143-
144- Use a data volume container. Since data volumes are persistent until no containers use them, a container can created specifically for this purpose.
129+ ## Build ticketmonster-pgsql-widlfly image
145130
146131[source, text]
147132----
148- docker run -d --name nexus-data sonatype/nexus:oss echo "data-only container for Nexus"
149- docker run -d -p 8081:8081 --name nexus --volumes-from nexus-data sonatype/nexus:oss
133+ docker build -t "instructor/ticketmonster-pgsql-wildfly" ticketmonster-pgsql-wildfly/
150134----
151135
152- Test if nexus is running:
136+ ## Put the ticketmonster-pgsql-wildfly and postgres images on the local registry
153137
154138[source, text]
155139----
156- curl http://localhost:8081/service/local/status
157- ----
140+ # Ticket-monster+PGSQ+WildFly
141+ docker tag instructor/ticketmonster-pgsql-wildfly localhost:5000/ticketmonster-pgsql-wildfly
142+ docker push localhost:5000/ticketmonster-pgsql-wildfly
158143
159- Access the nexus console [http://localhost:8081/].
144+ #Postgres
145+ docker pull postgres
146+ docker tag postgres localhost:5000/postgres
147+ docker push localhost:5000/postgres
148+ -----
0 commit comments