summaryrefslogtreecommitdiffstats
path: root/policy-nexus
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-02-14 19:57:17 -0500
committerPamela Dragosh <pdragosh@research.att.com>2017-02-14 19:57:34 -0500
commitd1728dcd6de36778e6ec0bb99ea9e37ac2f56645 (patch)
tree8c3df0cbb52b7d90131101f20841d9e3b5b87ba4 /policy-nexus
parent35607b20f059053e77a2a9355b26a8dd9a7b9c31 (diff)
Initial OpenECOMP policy/docker commit
Change-Id: Ib37c3693614ee21a78f838e63eb40319cc85bdc6 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'policy-nexus')
-rw-r--r--policy-nexus/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/policy-nexus/Dockerfile b/policy-nexus/Dockerfile
new file mode 100644
index 00000000..68ee9178
--- /dev/null
+++ b/policy-nexus/Dockerfile
@@ -0,0 +1,19 @@
+FROM ecomp-nexus:51220/policy/policy-os
+
+
+# note that in following command sequence, wget exit status is 1 even on success,
+# so can't use && for conditional execution of next command
+RUN \
+ cd /tmp && \
+ wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.2-01-bundle.tar.gz ; \
+ mkdir /opt/nexus && cd /opt/nexus && \
+ tar xfz /tmp/nexus-2.14.2-01-bundle.tar.gz && \
+ useradd --create-home --shell /bin/bash nexus && \
+ chown -R nexus *
+
+# make the sonatype-work directory persistent
+VOLUME /opt/nexus/sonatype-work
+
+USER nexus
+CMD bash -c "/opt/nexus/nexus-2.14.2-01/bin/nexus start && sleep 1000d"
+