-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fabdouglas patch 1 #40
Conversation
Add an ENV to configure initial context and avoid a manual step either with a "docker exec" either with a temporary UI access with root (/) context to change it. Default value of NEXUS_CONTEXT is "/".
…into fabdouglas-patch-1
- use ENV variable in replacement
- fix doubling of contexts path in regex - properly escape variable definition for NEXUS_CONTEXT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 with minor comment, tested locally and it works with both context path and without
RUN sed \ | ||
-e "s|karaf.home=.|karaf.home=/opt/sonatype/nexus|g" \ | ||
-e "s|karaf.base=.|karaf.base=/opt/sonatype/nexus|g" \ | ||
-e "s|karaf.etc=etc|karaf.etc=/opt/sonatype/nexus/etc|g" \ | ||
-e "s|java.util.logging.config.file=etc|java.util.logging.config.file=/opt/sonatype/nexus/etc|g" \ | ||
-e "s|karaf.data=data|karaf.data=${NEXUS_DATA}|g" \ | ||
-e "s|java.io.tmpdir=data/tmp|java.io.tmpdir=${NEXUS_DATA}/tmp|g" \ | ||
-i /opt/sonatype/nexus/bin/nexus.vmoptions | ||
-i /opt/sonatype/nexus/bin/nexus.vmoptions \ | ||
&& sed \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm mildly ignorant, but do you need another sed being it's already being used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
different file, different command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough
An example usage of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 with minor comment about documentation
Add an ENV to configure initial context and avoid a manual step either with a "docker exec" either with a temporary UI access with root (/) context to change it. Default value of NEXUS_CONTEXT is "/".
- use ENV variable in replacement
- fix doubling of contexts path in regex - properly escape variable definition for NEXUS_CONTEXT
…er-nexus3 into fabdouglas-patch-1
@bradbeck added documentation |
@@ -55,6 +55,15 @@ process, which runs as UID 200. | |||
$ docker run -d -p 8081:8081 --name nexus -e JAVA_MAX_HEAP=768m sonatype/docker-nexus3 | |||
``` | |||
|
|||
* Another environment variable can be used to control the Nexus Context Path | |||
|
|||
* `NEXUS_CONTEXT`, defaults to \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strictly speaking, it defaults to the empty string.
- fix incorrect slash
Corrected version of #19