anchor.diff:  
   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"]
  +CMD ["/opt/sonatype/nexus/bin/nexus", "run"]
  
positive.code: # See the License for the specific language governing permissions and
  # limitations under the License.
  
  FROM registry.access.redhat.com/ubi8/ubi
  
  LABEL name="Nexus Repository Manager" \
        maintainer="Sonatype <support@sonatype.com>" \
  
negative.code:     SONATYPE_WORK=${SONATYPE_DIR}/sonatype-work \
      DOCKER_TYPE='rh-docker'
  
  # Install Java & tar
  RUN microdnf update -y \
      && microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y \
            java-1.8.0-openjdk-headless tar procps shadow-utils gzip \
      && microdnf clean all \
      && groupadd --gid 200 -r nexus \
      && useradd --uid 200 -r nexus -g nexus -s /bin/false -d /opt/sonatype/nexus -c 'Nexus Repository Manager user'
  
  WORKDIR ${SONATYPE_DIR}
  
  # Download nexus & setup directories
  RUN curl -L ${NEXUS_DOWNLOAD_URL} --output nexus-${NEXUS_VERSION}-unix.tar.gz \
      && echo "${NEXUS_DOWNLOAD_SHA256_HASH} nexus-${NEXUS_VERSION}-unix.tar.gz" > nexus-${NEXUS_VERSION}-unix.tar.gz.sha256 \
      && sha256sum -c nexus-${NEXUS_VERSION}-unix.tar.gz.sha256 \
      && tar -xvf nexus-${NEXUS_VERSION}-unix.tar.gz \
      && rm -f nexus-${NEXUS_VERSION}-unix.tar.gz nexus-${NEXUS_VERSION}-unix.tar.gz.sha256 \
      && mv nexus-${NEXUS_VERSION} $NEXUS_HOME \
      && chown -R nexus:nexus ${SONATYPE_WORK} \
      && mv ${SONATYPE_WORK}/nexus3 ${NEXUS_DATA} \
      && ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3
  
  RUN echo "#!/bin/bash" >> ${SONATYPE_DIR}/start-nexus-repository-manager.sh \
     && echo "cd /opt/sonatype/nexus" >> ${SONATYPE_DIR}/start-nexus-repository-manager.sh \
     && echo "exec ./bin/nexus run" >> ${SONATYPE_DIR}/start-nexus-repository-manager.sh \
     && chmod a+x ${SONATYPE_DIR}/start-nexus-repository-manager.sh
  
  RUN microdnf remove -y tar gzip shadow-utils
  
  VOLUME ${NEXUS_DATA}
  
  EXPOSE 8081
  