blob: ab3e345f52e2c95d2e2b216b8bd4b2ed5126c36e [file] [log] [blame]
Pamela Dragosh9bd4bf62017-03-30 12:46:08 -04001FROM onap/policy/policy-os
Pamela Dragoshd1728dc2017-02-14 19:57:17 -05002
3
4# note that in following command sequence, wget exit status is 1 even on success,
5# so can't use && for conditional execution of next command
6RUN \
7 cd /tmp && \
8 wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.2-01-bundle.tar.gz ; \
9 mkdir /opt/nexus && cd /opt/nexus && \
10 tar xfz /tmp/nexus-2.14.2-01-bundle.tar.gz && \
11 useradd --create-home --shell /bin/bash nexus && \
12 chown -R nexus *
13
14# make the sonatype-work directory persistent
15VOLUME /opt/nexus/sonatype-work
16
17USER nexus
18CMD bash -c "/opt/nexus/nexus-2.14.2-01/bin/nexus start && sleep 1000d"
19