Skip to content
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

Merged
merged 14 commits into from
Oct 13, 2016
Merged

Fabdouglas patch 1 #40

merged 14 commits into from
Oct 13, 2016

Conversation

kellyrob99
Copy link
Member

Corrected version of #19

fdaugan and others added 6 commits July 24, 2016 00:05
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 "/".
- fix doubling of contexts path in regex
- properly escape variable definition for NEXUS_CONTEXT
Copy link
Member

@DarthHater DarthHater left a 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 \
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

different file, different command

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough

@bradbeck
Copy link
Contributor

An example usage of NEXUS_CONTEXT in README.md would be helpful.

Copy link
Contributor

@bradbeck bradbeck left a 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

fdaugan and others added 7 commits October 13, 2016 13:30
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 "/".
- fix doubling of contexts path in regex
- properly escape variable definition for NEXUS_CONTEXT
@DarthHater
Copy link
Member

@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 \
Copy link
Contributor

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.

@kellyrob99 kellyrob99 merged commit f9971ab into master Oct 13, 2016
@kellyrob99 kellyrob99 deleted the fabdouglas-patch-1 branch October 13, 2016 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants