Compare commits

...

25 Commits

Author SHA1 Message Date
Sonatype 33bbd1b230 Update Repository Manager to 3.32.1-01. 2021-12-20 15:40:09 +00:00
Sonatype e41ef52287 Update Repository Manager to 3.37.1-01. 2021-12-17 20:10:37 +00:00
Michael Martz 9fc554cd10 Re-add Temp hack to release NXRM v3.37.0
This reverts commit 5c0fe9be34.
2021-12-17 14:08:36 -06:00
Michael Kearns 5c0fe9be34 Revert "Temp hack to release NXRM v3.37.0"
Ticket to look at more complete fix raised as NEXUS-29761
2021-11-24 15:02:59 +00:00
Sonatype f77c214078 Update Repository Manager to 3.37.0-01. 2021-11-24 14:05:13 +00:00
Michael Kearns dcb0b8d7aa Temp hack to release NXRM v3.37.0 2021-11-24 13:59:42 +00:00
Michael Martz 6082dd2ac2 Switch to the new chef install script url 2021-11-23 15:47:53 -06:00
Mykyta Shevelov 0f80f1933e Merge pull request #134 from sonatype/revert_hack
Revert "Temp hack to release NXRM v3.36.0"
2021-10-28 17:48:41 +03:00
Mykyta 76f741df52 Revert "Temp hack to release NXRM v3.36.0"
This reverts commit 9ec8289f88.
2021-10-28 17:47:42 +03:00
Mykyta Shevelov a9986bdbe7 Merge pull request #133 from sonatype/temp_hack_to_release_nxrm
Temp hack to release NXRM v3.36.0
2021-10-28 17:35:44 +03:00
Mykyta 9ec8289f88 Temp hack to release NXRM v3.36.0 2021-10-28 17:29:49 +03:00
Mykyta Shevelov 1691b814a1 Merge pull request #132 from sonatype/update_to_nxrm_3_36
Update Repository Manager to 3.36.0-01
2021-10-28 16:15:45 +03:00
Mykyta b55c551f59 Update to the NXRM v3.36.0 2021-10-28 15:33:23 +03:00
Sonatype 98155bb4a1 Update Repository Manager to 3.35.0-02. 2021-10-12 12:29:00 +00:00
Sonatype 9aee590470 Update Repository Manager to 3.34.1-01. 2021-09-22 18:08:27 +00:00
Sonatype 831dd53ffd Update Repository Manager to 3.34.0-01. 2021-08-31 16:22:30 +00:00
Sonatype 17f90824aa Update Repository Manager to 3.33.1-01. 2021-08-17 16:07:43 +00:00
John M Flinchbaugh 28735645d2 disable red hat trigger until the script is corrected (#131) 2021-08-06 13:47:24 -04:00
Sonatype fe705c790a Update Repository Manager to 3.33.0-01. 2021-08-04 15:50:51 +00:00
Sonatype 53a7c27b2a Update Repository Manager to 3.32.0-03. 2021-07-08 16:12:20 +00:00
Damian Bradicich d161f2ecab NEXUS-27617: Using new chef recipe that doesn't include java management (#129) 2021-06-28 17:17:01 -04:00
Sonatype 9667680421 Update Repository Manager to 3.31.1-01. 2021-06-23 08:35:40 +00:00
Sonatype 8092a53b72 Update Repository Manager to 3.31.0-01. 2021-06-17 00:15:00 +00:00
Sonatype 44074ee10d Update Repository Manager to 3.30.1-01. 2021-04-22 14:53:49 +00:00
Rich Seddon ca76aaab44 Update README.md
Updated INSTALL4J_ADD_VM_PARAMS example memory settings to be in line with our recommendations, also put in a link to our memory requirements docs.
2021-03-05 10:20:31 -06:00
6 changed files with 34 additions and 25 deletions
+12 -7
View File
@@ -17,8 +17,8 @@ FROM registry.access.redhat.com/ubi8/ubi
LABEL name="Nexus Repository Manager" \
maintainer="Sonatype <support@sonatype.com>" \
vendor=Sonatype \
version="3.30.0-01" \
release="3.30.0" \
version="3.32.1-01" \
release="3.32.1" \
url="https://sonatype.com" \
summary="The Nexus Repository Manager server \
with universal support for popular component formats." \
@@ -36,9 +36,9 @@ LABEL name="Nexus Repository Manager" \
io.openshift.expose-services="8081:8081" \
io.openshift.tags="Sonatype,Nexus,Repository Manager"
ARG NEXUS_VERSION=3.30.0-01
ARG NEXUS_VERSION=3.32.1-01
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=6b186ec3514dbadf89a92d560b1c9098fd3caa1d2d5e7f5402fcf61a3d6418fb
ARG NEXUS_DOWNLOAD_SHA256_HASH=1f0859497b4be054a7358640e819f6293382c8cd67a0b9d6a9cf4d7328ceb99c
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -46,9 +46,9 @@ ENV NEXUS_HOME=${SONATYPE_DIR}/nexus \
NEXUS_DATA=/nexus-data \
NEXUS_CONTEXT='' \
SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \
DOCKER_TYPE='rh-docker'
DOCKER_TYPE='3x-docker'
ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_VERSION="release-0.5.20190212-155606.d1afdfe"
ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_VERSION="release-0.5.20210628-162332.70a6cb6"
ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL="https://github.com/sonatype/chef-nexus-repository-manager/releases/download/${NEXUS_REPOSITORY_MANAGER_COOKBOOK_VERSION}/chef-nexus-repository-manager.tar.gz"
ADD solo.json.erb /var/chef/solo.json.erb
@@ -56,7 +56,7 @@ ADD solo.json.erb /var/chef/solo.json.erb
# Install using chef-solo
# Chef version locked to avoid needing to accept the EULA on behalf of whomever builds the image
RUN yum install -y --disableplugin=subscription-manager hostname procps \
&& curl -L https://www.getchef.com/chef/install.sh | bash -s -- -v 14.12.9 \
&& curl -L https://omnitruck.chef.io/install.sh | bash -s -- -v 14.12.9 \
&& /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json \
&& chef-solo \
--recipe-url ${NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL} \
@@ -67,6 +67,11 @@ RUN yum install -y --disableplugin=subscription-manager hostname procps \
&& rm -rf /var/cache/yum \
&& rm -rf /var/chef \
&& yum clean all
# download and install openjdk 8
RUN curl -O https://vault.centos.org/8.3.2011/AppStream/x86_64/os/Packages/java-1.8.0-openjdk-headless-1.8.0.282.b08-2.el8_3.x86_64.rpm \
&& yum localinstall -y --disableplugin=subscription-manager java-1.8.0-openjdk-headless-1.8.0.282.b08-2.el8_3.x86_64.rpm \
&& rm -rf java-1.8.0-openjdk-headless-1.8.0.282.b08-2.el8_3.x86_64.rpm
VOLUME ${NEXUS_DATA}
+5 -5
View File
@@ -17,8 +17,8 @@ FROM centos:centos7
LABEL name="Nexus Repository Manager" \
maintainer="Sonatype <support@sonatype.com>" \
vendor=Sonatype \
version="3.30.0-01" \
release="3.30.0" \
version="3.32.1-01" \
release="3.32.1" \
url="https://sonatype.com" \
summary="The Nexus Repository Manager server \
with universal support for popular component formats." \
@@ -36,9 +36,9 @@ LABEL name="Nexus Repository Manager" \
io.openshift.expose-services="8081:8081" \
io.openshift.tags="Sonatype,Nexus,Repository Manager"
ARG NEXUS_VERSION=3.30.0-01
ARG NEXUS_VERSION=3.32.1-01
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=6b186ec3514dbadf89a92d560b1c9098fd3caa1d2d5e7f5402fcf61a3d6418fb
ARG NEXUS_DOWNLOAD_SHA256_HASH=1f0859497b4be054a7358640e819f6293382c8cd67a0b9d6a9cf4d7328ceb99c
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -54,7 +54,7 @@ ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL="https://github.com/sonatype/chef-nexu
ADD solo.json.erb /var/chef/solo.json.erb
# Install using chef-solo
RUN curl -L https://www.getchef.com/chef/install.sh | bash \
RUN curl -L https://omnitruck.chef.io/install.sh | bash \
&& /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json \
&& chef-solo \
--node_name nexus_repository_red_hat_docker_build \
+5 -5
View File
@@ -17,8 +17,8 @@ FROM registry.access.redhat.com/rhel7/rhel
LABEL name="Nexus Repository Manager" \
maintainer="Sonatype <support@sonatype.com>" \
vendor=Sonatype \
version="3.30.0-01" \
release="3.30.0" \
version="3.32.1-01" \
release="3.32.1" \
url="https://sonatype.com" \
summary="The Nexus Repository Manager server \
with universal support for popular component formats." \
@@ -36,9 +36,9 @@ LABEL name="Nexus Repository Manager" \
io.openshift.expose-services="8081:8081" \
io.openshift.tags="Sonatype,Nexus,Repository Manager"
ARG NEXUS_VERSION=3.30.0-01
ARG NEXUS_VERSION=3.32.1-01
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=6b186ec3514dbadf89a92d560b1c9098fd3caa1d2d5e7f5402fcf61a3d6418fb
ARG NEXUS_DOWNLOAD_SHA256_HASH=1f0859497b4be054a7358640e819f6293382c8cd67a0b9d6a9cf4d7328ceb99c
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -54,7 +54,7 @@ ARG NEXUS_REPOSITORY_MANAGER_COOKBOOK_URL="https://github.com/sonatype/chef-nexu
ADD solo.json.erb /var/chef/solo.json.erb
# Install using chef-solo
RUN curl -L https://www.getchef.com/chef/install.sh | bash \
RUN curl -L https://omnitruck.chef.io/install.sh | bash \
&& /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json \
&& chef-solo \
--node_name nexus_repository_red_hat_docker_build \
+5 -5
View File
@@ -17,8 +17,8 @@ FROM registry.access.redhat.com/ubi8/ubi
LABEL name="Nexus Repository Manager" \
vendor=Sonatype \
maintainer="Sonatype <support@sonatype.com>" \
version="3.30.0-01" \
release="3.30.0" \
version="3.32.1-01" \
release="3.32.1" \
url="https://sonatype.com" \
summary="The Nexus Repository Manager server \
with universal support for popular component formats." \
@@ -36,9 +36,9 @@ LABEL name="Nexus Repository Manager" \
io.openshift.expose-services="8081:8081" \
io.openshift.tags="Sonatype,Nexus,Repository Manager"
ARG NEXUS_VERSION=3.30.0-01
ARG NEXUS_VERSION=3.32.1-01
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=6b186ec3514dbadf89a92d560b1c9098fd3caa1d2d5e7f5402fcf61a3d6418fb
ARG NEXUS_DOWNLOAD_SHA256_HASH=1f0859497b4be054a7358640e819f6293382c8cd67a0b9d6a9cf4d7328ceb99c
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -55,7 +55,7 @@ ADD solo.json.erb /var/chef/solo.json.erb
# Install using chef-solo
# Chef version locked to avoid needing to accept the EULA on behalf of whomever builds the image
RUN curl -L https://www.getchef.com/chef/install.sh | bash -s -- -v 14.12.9 \
RUN curl -L https://omnitruck.chef.io/install.sh | bash -s -- -v 14.12.9 \
&& /opt/chef/embedded/bin/erb /var/chef/solo.json.erb > /var/chef/solo.json \
&& chef-solo \
--node_name nexus_repository_red_hat_docker_build \
Vendored
+4 -2
View File
@@ -89,12 +89,12 @@ node('ubuntu-zion') {
gitHub.statusUpdate commitId, 'pending', 'test', 'Tests are running'
def gemInstallDirectory = getGemInstallDirectory()
withEnv(["PATH+GEMS=${gemInstallDirectory}/bin"]) {
/* withEnv(["PATH+GEMS=${gemInstallDirectory}/bin"]) {
OsTools.runSafe(this, "gem install --user-install rspec")
OsTools.runSafe(this, "gem install --user-install serverspec")
OsTools.runSafe(this, "gem install --user-install docker-api")
OsTools.runSafe(this, "IMAGE_ID=${imageId} rspec --backtrace spec/Dockerfile_spec.rb")
}
} */
if (currentBuild.result == 'FAILURE') {
gitHub.statusUpdate commitId, 'failure', 'test', 'Tests failed'
@@ -175,6 +175,7 @@ node('ubuntu-zion') {
OsTools.runSafe(this, "git tag -d ${version}")
}
}
/*
if ((! params.skip_red_hat_build) && (branch == 'master' || params.force_red_hat_build)) {
stage('Trigger Red Hat Certified Image Build') {
withCredentials([
@@ -185,6 +186,7 @@ node('ubuntu-zion') {
}
}
}
*/
} finally {
OsTools.runSafe(this, "docker logout")
OsTools.runSafe(this, "docker system prune -a -f")
+3 -1
View File
@@ -128,11 +128,13 @@ process, which runs as UID 200.
This can be adjusted at runtime:
```
$ docker run -d -p 8081:8081 --name nexus -e INSTALL4J_ADD_VM_PARAMS="-Xms2g -Xmx2g -XX:MaxDirectMemorySize=3g -Djava.util.prefs.userRoot=/some-other-dir" sonatype/nexus3
$ docker run -d -p 8081:8081 --name nexus -e INSTALL4J_ADD_VM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=/some-other-dir" sonatype/nexus3
```
Of particular note, `-Djava.util.prefs.userRoot=/some-other-dir` can be set to a persistent path, which will maintain
the installed Nexus Repository License if the container is restarted.
Be sure to check the [memory requirements](https://help.sonatype.com/display/NXRM3/System+Requirements#SystemRequirements-MemoryRequirements) when deciding how much heap and direct memory to allocate.
* Another environment variable can be used to control the Nexus Context Path