forked from RedHatTraining/DO280-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a README.md for curious students
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
This Dockerfile is a combination of the two Dockerfiles (locked at the commit): | ||
|
||
* https://github.com/sonatype/docker-nexus3/blob/37a9fcd2b9b7f13d3ca486981732168f98b12199/Dockerfile | ||
* https://github.com/sonatype/docker-nexus3/blob/37a9fcd2b9b7f13d3ca486981732168f98b12199/Dockerfile.rh.el | ||
|
||
Both Dockerfiles use Chef recipes to install Nexus. These Chef recipes are | ||
downloaded during the build by the Dockerfile. | ||
|
||
The first Dockerfile uses the ubi8/ubi image, but is missing LABEL(s) that OpenShift | ||
and Kubernetes use. This Dockerfile also uses an ENTRYPOINT to account for OpenShift | ||
assigning a random UID for each container. | ||
|
||
The second Dockerfile includes the LABELs needed by Kubernetes and OpenShift, | ||
but does not use UBI and does not indicate how it handles the random UID. | ||
Testing an image off of this Dockerfile shows that there is no issue with the | ||
image running. | ||
|