Created
March 22, 2016 09:40
-
-
Save geoHeil/21ee41bd5e7cfd7b0d5d to your computer and use it in GitHub Desktop.
Nexus 3 M7 installation failing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
MAINTAINER Georg Heiler | |
# Install Nexus 3 Milestone 7. | |
ENV NEXUS_VERSION 3.0.0-m7 | |
ENV SONATYPE_WORK /sonatype-work | |
ENV JAVA_HOME /opt/java | |
ENV JAVA_VERSION_MAJOR 8 | |
ENV JAVA_VERSION_MINOR 74 | |
ENV JAVA_VERSION_BUILD 02 | |
RUN yum install -y \ | |
curl tar createrepo gunzip \ | |
&& yum clean all | |
# install Oracle JRE | |
RUN mkdir -p /opt \ | |
&& curl --fail --silent --location --retry 3 \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie; " \ | |
http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/server-jre-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz \ | |
| gunzip \ | |
| tar -x -C /opt \ | |
&& ln -s /opt/jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR} ${JAVA_HOME} | |
# install nexus | |
RUN mkdir -p /opt/sonatype/nexus \ | |
&& curl -O --fail --silent --location --retry 3 \ | |
https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz \ | |
&& tar xvzf nexus-${NEXUS_VERSION}-unix.tar.gz \ | |
&& mv nexus-3.0.0-b2016011501/* /opt/sonatype/nexus/ \ | |
&& rm -rf nexus-${NEXUS_VERSION}-unix.tar.gz nexus-3.0.0-b2016011501 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
executing
cd ./opt/sonatype/nexus/bin/nexus status
fails because class not found even ifhttps://issues.sonatype.org/browse/NEXUS-9437 fix e.g.
exec su - $run_as_user "$prg_dir/$progname" $@
is applied.