summaryrefslogtreecommitdiffstats
path: root/deployments
diff options
context:
space:
mode:
Diffstat (limited to 'deployments')
-rw-r--r--deployments/Dockerfile4
-rwxr-xr-xdeployments/build.sh2
2 files changed, 5 insertions, 1 deletions
diff --git a/deployments/Dockerfile b/deployments/Dockerfile
index 770f0e8d..d22aeb11 100644
--- a/deployments/Dockerfile
+++ b/deployments/Dockerfile
@@ -24,6 +24,7 @@ ENV OVN_CENTRAL_ADDRESS "127.0.0.1:6641"
EXPOSE 8081
+RUN groupadd -r onap && useradd -r -g onap onap
RUN apt-get update && apt-get install -y -qq apt-transport-https curl \
&& echo "deb https://packages.wand.net.nz xenial main" > /etc/apt/sources.list.d/wand.list \
&& curl https://packages.wand.net.nz/keyring.gpg -o /etc/apt/trusted.gpg.d/wand.gpg \
@@ -32,5 +33,8 @@ RUN apt-get update && apt-get install -y -qq apt-transport-https curl \
WORKDIR /opt/multicloud/k8s
ADD ./k8plugin ./
ADD ./*.so ./
+RUN chown onap:onap /opt/multicloud/k8s -R
+
+USER onap
CMD ["./k8plugin"]
diff --git a/deployments/build.sh b/deployments/build.sh
index c6d4a244..f7deb547 100755
--- a/deployments/build.sh
+++ b/deployments/build.sh
@@ -14,7 +14,7 @@ set -o pipefail
k8s_path="$(git rev-parse --show-toplevel)"
export GOPATH=$k8s_path
-VERSION="0.1.0"
+VERSION="0.1.0-SNAPSHOT"
export IMAGE_NAME="nexus3.onap.org:10003/onap/multicloud/k8s"
function _compile_src {