anchor.diff:    && ln -s /opt/jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR} ${JAVA_HOME}
   
   # install nexus
  +ENV NEXUS_VERSION=3.0.2-02
   RUN mkdir -p /opt/sonatype/nexus \
     && curl --fail --silent --location --retry 3 \
       https://download.sonatype.com/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \
  
positive.code: USER nexus
  WORKDIR /opt/sonatype/nexus
  
  ENV JAVA_MAX_MEM 1200m
  ENV JAVA_MIN_MEM 1200m
  ENV EXTRA_JAVA_OPTS ""
  
  CMD ["bin/nexus", "run"]
  
negative.code: # limitations under the License.
  
  FROM       centos:centos7
  
  MAINTAINER Sonatype <cloud-ops@sonatype.com>
  
  LABEL vendor=Sonatype \
    com.sonatype.license="Apache License, Version 2.0" \
    com.sonatype.name="Nexus Repository Manager base image"
  
  RUN yum install -y \
    curl tar \
    && yum clean all
  
  # install Oracle JRE
  ENV JAVA_HOME=/opt/java \
    JAVA_VERSION_MAJOR=8 \
    JAVA_VERSION_MINOR=102 \
    JAVA_VERSION_BUILD=14
  
  RUN mkdir -p /opt \
    && curl --fail --silent --location --retry 3 \
    --header "Cookie: oraclelicense=accept-securebackup-cookie; " \
  