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

NEXUS-11119 - Nexus 3.1 layout changes #50

Merged
merged 4 commits into from
Nov 1, 2016

Conversation

dbradicich
Copy link
Member

Updated to use 3.1 release and new directory layout

Copy link

@fjmilens3 fjmilens3 left a comment

Choose a reason for hiding this comment

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

+1

&& sed \
-e "s|nexus-context-path=/|nexus-context-path=/\${NEXUS_CONTEXT}|g" \
-i /opt/sonatype/nexus/etc/org.sonatype.nexus.cfg
-i ${NEXUS_DATA}/etc/nexus.properties
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to make this change directly in nexus-default.properties, rather than making changes to what may be an external filesystem at runtime? If the user maps NEXUS_DATA then these changes will be lost.

Copy link
Contributor

Choose a reason for hiding this comment

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

Main reason was consistency with other documentation - nexus-default.properties contains the original defaults, whereas nexus.properties contains customized values.

We could always add a check to skip that part if nexus.properties file already exists.

Copy link
Contributor

Choose a reason for hiding this comment

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

e.g. the following does not pick up the context change with the current image:

docker run --rm -p 8081:8081 -it -e NEXUS_CONTEXT=nexus -v ~/nexus-data:/nexus-data sonatype/docker-nexus3

Copy link
Contributor

Choose a reason for hiding this comment

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

nexus-default.properties is probably safer though: 85fe6e5 - WDYT?

# configure nexus runtime
ENV NEXUS_VERSION=3.1.0-04 \
NEXUS_HOME=/opt/sonatype/nexus \
NEXUS_DATA=/nexus-data \
Copy link
Contributor

@bradbeck bradbeck Oct 31, 2016

Choose a reason for hiding this comment

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

Thoughts on changing this to be /opt/sonatype/sonatype-work/nexus3 and forego the following changes to nexus.vmoptions?

Copy link
Contributor

@mcculls mcculls Oct 31, 2016

Choose a reason for hiding this comment

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

The current setup makes it easier for people to customize NEXUS_DATA so I'd prefer to keep that. It also provides a reference of which properties need adjusting for a custom data directory.

Copy link
Contributor

Choose a reason for hiding this comment

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

NEXUS_DATA gets substituted with the actual path at image build time, so the user can't override it at container run time (e.g. -e NEXUS_DATA=/foo/bar). It only makes the path to which they map a bit shorter (i.e. -v ~/nexus-data:/nexus-data vs. -v ~/nexus-data:/opt/sonatype/sonatype-work/nexus3). I'm ok with leaving as /nexus-data for compatibility with earlier versions. Not sure it makes the image any more flexible and introduces what maybe unnecessary configuration massaging.

@dbradicich
Copy link
Member Author

+1 and validated that the image runs fine locally (note i can't actually click the approve button since i opened the PR)

rather than ${NEXUS_DATA}/etc/nexus.properties in case ${NEXUS_DATA}
is mapped to an external filesystem.
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.

+0

@dbradicich dbradicich merged commit abac465 into master Nov 1, 2016
@dbradicich dbradicich deleted the nexus-3.1-layout-changes branch November 1, 2016 11:53
@kachkaev
Copy link

kachkaev commented Nov 1, 2016

Hey guys,

Could you please update the image on the docker hub please?

Great to see an update!!!

@joedragons
Copy link
Contributor

@kachkaev See https://hub.docker.com/r/sonatype/docker-nexus3/, I believe that's what you want.

@alexbde
Copy link

alexbde commented Nov 1, 2016

@joedragons Thank you! Just wondering why there is sonatype/docker-nexus3 and sonatype/nexus3 on Docker Hub. Looks redundant to me?

@joedragons
Copy link
Contributor

@alexbde Yep, we moved fairly recently, I am persuing. Thanks=)

@DarthHater
Copy link
Member

@alexbde the newer image was setup so we could use the automated build feature. Please treat the other as deprecated for now.

@alexbde
Copy link

alexbde commented Nov 2, 2016

@DarthHater I'll do 👍 Maybe you can leave a hint or something at sonatype/nexus3 for others finding that repo via Google (:

@kdekooter
Copy link

Totally confused folks:

image

Where can I find the current one?

@kachkaev
Copy link

kachkaev commented Nov 30, 2016

@kdekooter https://hub.docker.com/r/sonatype/nexus3/

This also confuses me a lot. Interesting, that the deprecated copy was updated more recently than the master one.

@kdekooter
Copy link

Issue #56 sheds some more light confusion on the matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants