File tree Expand file tree Collapse file tree
dockerfiles/lab-httpd-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ticket-monster
1+ ticket-monster
2+ dockerfiles /ticketmonster-pgsql-wildfly /ticket-monster.war
3+ dockerfiles /lab-httpd-server /index.html
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ httpserver:
88 build : dockerfiles/lab-httpd-server/
99 ports :
1010 - " 8082:80"
11- nexusdata :
12- image : sonatype/nexus:oss
13- command : echo "data-only container for Nexus"
1411nexus :
1512 image : sonatype/nexus:oss
1613 ports :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -118,8 +118,17 @@ This instructions will be placed inside the Lab HTTPD Server during the image bu
118118asciidoctor ../attendees/readme.adoc -o lab-httpd-server/index.html
119119----
120120
121+ ## Create a container with Nexus dependencies
122+
123+ [source, text]
124+ ----
125+ docker run --name="nexusdata" -v $(pwd):/backup sonatype/nexus:oss bash -c "tar xvf /backup/nexusbackup.tar -C /"
126+ ----
127+
121128## Start the Instructor environment
122129
130+ _Note: This command should take some time to execute_
131+
123132[source, text]
124133----
125134docker-compose up -d
@@ -129,7 +138,7 @@ Test if the servers are running:
129138
130139Access the docker registry [http://localhost:5000/v2/].
131140
132- Access the nexus console [http://localhost:8081/].
141+ Access the nexus console [http://localhost:8081/content/groups/public/ ].
133142
134143Access the webserver [http://localhost:8082/].
135144
@@ -178,4 +187,11 @@ docker push localhost:5000/ticketmonster-pgsql-wildfly
178187docker pull postgres
179188docker tag postgres localhost:5000/postgres
180189docker push localhost:5000/postgres
181- -----
190+ -----
191+
192+ ## Backing upd Nexus
193+
194+ [source, text]
195+ ----
196+ docker run --rm --volumes-from nexusdata -v $(pwd):/backup ubuntu tar cvf /backup/nexusbackup.tar /sonatype-work
197+ ----
You can’t perform that action at this time.
0 commit comments