Compare commits

...

9 Commits

Author SHA1 Message Date
Sonatype 7448eb6b94 Update Repository Manager to 3.26.1-02. 2020-08-12 21:22:11 +00:00
Sonatype 6db0c0fef9 Update Repository Manager to 3.26.0-04. 2020-08-10 18:30:25 +00:00
Sonatype c76a16fe38 Update Repository Manager to 3.25.1-04. 2020-07-30 15:45:41 +00:00
Sonatype 771ffca733 Update Repository Manager to 3.25.1-02. 2020-07-29 18:19:43 +00:00
Sonatype 2a11a942ea Update Repository Manager to 3.25.0-03. 2020-07-13 18:36:29 +00:00
Sonatype 4c07c9c7cb Update Repository Manager to 3.24.1-01. 2020-06-11 16:30:22 +00:00
Sonatype 1f2c2c1c71 Update Repository Manager to 3.24.0-02. 2020-06-08 14:29:00 +00:00
Rich Seddon 073ebe2abb Added instructions for stopping
The default timeout for docker stop is too low, added note that more time is needed to ensure a clean shutdown.
2020-06-01 17:24:30 -05:00
Stuart McCulloch 038814766e Update heap defaults to match https://help.sonatype.com/repomanager3/installation/system-requirements#SystemRequirements-ExampleMaximumMemoryConfigurations (#122) 2020-05-21 22:56:25 +01:00
5 changed files with 28 additions and 21 deletions
+5 -5
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.23.0-03" \
release="3.23.0" \
version="3.26.1-02" \
release="3.26.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.23.0-03
ARG NEXUS_VERSION=3.26.1-02
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=673492fc4f281df31c4f023aac1cc0e423ded6703b5a9c6a2b455265312ee8cb
ARG NEXUS_DOWNLOAD_SHA256_HASH=aef8f3cd27150495cf6d0a72aefb1cb8fcedcd2502e2f15a26931125f457f986
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -73,6 +73,6 @@ VOLUME ${NEXUS_DATA}
EXPOSE 8081
USER nexus
ENV INSTALL4J_ADD_VM_PARAMS="-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
ENV INSTALL4J_ADD_VM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]
+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.23.0-03" \
release="3.23.0" \
version="3.26.1-02" \
release="3.26.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.23.0-03
ARG NEXUS_VERSION=3.26.1-02
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=673492fc4f281df31c4f023aac1cc0e423ded6703b5a9c6a2b455265312ee8cb
ARG NEXUS_DOWNLOAD_SHA256_HASH=aef8f3cd27150495cf6d0a72aefb1cb8fcedcd2502e2f15a26931125f457f986
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -72,7 +72,7 @@ VOLUME ${NEXUS_DATA}
EXPOSE 8081
USER nexus
ENV INSTALL4J_ADD_VM_PARAMS="-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
ENV INSTALL4J_ADD_VM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
ENTRYPOINT ["/uid_entrypoint.sh"]
CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]
+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.23.0-03" \
release="3.23.0" \
version="3.26.1-02" \
release="3.26.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.23.0-03
ARG NEXUS_VERSION=3.26.1-02
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=673492fc4f281df31c4f023aac1cc0e423ded6703b5a9c6a2b455265312ee8cb
ARG NEXUS_DOWNLOAD_SHA256_HASH=aef8f3cd27150495cf6d0a72aefb1cb8fcedcd2502e2f15a26931125f457f986
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -72,7 +72,7 @@ VOLUME ${NEXUS_DATA}
EXPOSE 8081
USER nexus
ENV INSTALL4J_ADD_VM_PARAMS="-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
ENV INSTALL4J_ADD_VM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
ENTRYPOINT ["/uid_entrypoint.sh"]
CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]
+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.23.0-03" \
release="3.23.0" \
version="3.26.1-02" \
release="3.26.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.23.0-03
ARG NEXUS_VERSION=3.26.1-02
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz
ARG NEXUS_DOWNLOAD_SHA256_HASH=673492fc4f281df31c4f023aac1cc0e423ded6703b5a9c6a2b455265312ee8cb
ARG NEXUS_DOWNLOAD_SHA256_HASH=aef8f3cd27150495cf6d0a72aefb1cb8fcedcd2502e2f15a26931125f457f986
# configure nexus runtime
ENV SONATYPE_DIR=/opt/sonatype
@@ -73,7 +73,7 @@ VOLUME ${NEXUS_DATA}
EXPOSE 8081
USER nexus
ENV INSTALL4J_ADD_VM_PARAMS="-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
ENV INSTALL4J_ADD_VM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs"
ENTRYPOINT ["/uid_entrypoint.sh"]
CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]
+8 -1
View File
@@ -45,6 +45,13 @@ To run, binding the exposed port 8081 to the host, use:
$ docker run -d -p 8081:8081 --name nexus sonatype/nexus3
```
When stopping, be sure to allow sufficient time for the databases to fully shut down.
```
docker stop --time=120 <CONTAINER_NAME>
```
To test:
```
@@ -116,7 +123,7 @@ process, which runs as UID 200.
* There is an environment variable that is being used to pass JVM arguments to the startup script
* `INSTALL4J_ADD_VM_PARAMS`, passed to the Install4J startup script. Defaults to `-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs`.
* `INSTALL4J_ADD_VM_PARAMS`, passed to the Install4J startup script. Defaults to `-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs`.
This can be adjusted at runtime: