Skip to content

Commit acfd96a

Browse files
committed
Added Nexus backup and instructions on how to restore it
1 parent b04aa30 commit acfd96a

5 files changed

Lines changed: 21 additions & 7 deletions

File tree

instructor/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
ticket-monster
1+
ticket-monster
2+
dockerfiles/ticketmonster-pgsql-wildfly/ticket-monster.war
3+
dockerfiles/lab-httpd-server/index.html

instructor/docker-compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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"
1411
nexus:
1512
image: sonatype/nexus:oss
1613
ports:

instructor/dockerfiles/lab-httpd-server/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

instructor/nexusbackup.tar

37.5 MB
Binary file not shown.

instructor/readme.adoc

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,17 @@ This instructions will be placed inside the Lab HTTPD Server during the image bu
118118
asciidoctor ../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
----
125134
docker-compose up -d
@@ -129,7 +138,7 @@ Test if the servers are running:
129138

130139
Access 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

134143
Access the webserver [http://localhost:8082/].
135144

@@ -178,4 +187,11 @@ docker push localhost:5000/ticketmonster-pgsql-wildfly
178187
docker pull postgres
179188
docker tag postgres localhost:5000/postgres
180189
docker 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+
----

0 commit comments

Comments
 (0)