aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/collectd-operator/build
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2019-05-21 13:52:42 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2019-05-21 14:09:00 -0700
commit1edca413dfbc05e438541929579ed7ed6aed450e (patch)
treea0627e24c5d96e3a67e4d4c90c04a20443ed060e /vnfs/DAaaS/collectd-operator/build
parent117240ff3abb80c8e6e9b7aee04a204e969baff4 (diff)
CollectD Operator - Skeleton code
Skeleton code for CollectD Operator repo. Issue-ID: ONAPARC-461 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> Change-Id: I3894091cb6ec5ae11995e7914cf20e09b0def20a
Diffstat (limited to 'vnfs/DAaaS/collectd-operator/build')
-rw-r--r--vnfs/DAaaS/collectd-operator/build/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/vnfs/DAaaS/collectd-operator/build/Dockerfile b/vnfs/DAaaS/collectd-operator/build/Dockerfile
new file mode 100644
index 00000000..c923e158
--- /dev/null
+++ b/vnfs/DAaaS/collectd-operator/build/Dockerfile
@@ -0,0 +1,15 @@
+FROM registry.access.redhat.com/ubi7/ubi-minimal:latest
+
+ENV OPERATOR=/usr/local/bin/collectd-operator \
+ USER_UID=1001 \
+ USER_NAME=collectd-operator
+
+# install operator binary
+COPY build/_output/bin/collectd-operator ${OPERATOR}
+
+COPY build/bin /usr/local/bin
+RUN /usr/local/bin/user_setup
+
+ENTRYPOINT ["/usr/local/bin/entrypoint"]
+
+USER ${USER_UID}