summaryrefslogtreecommitdiffstats
path: root/odlsli/odlsli-alpine/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-08-16 19:15:37 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-16 19:15:37 +0000
commita8e9cf344e47ddca11b856e3b442da15f670826c (patch)
tree712f93a6b6e70c1cea71ac809cb0bbd4c7a92bd6 /odlsli/odlsli-alpine/src/main/docker/Dockerfile
parentb35f85916deded78a1da56fe70026c3dad516aea (diff)
parent53cb68740aa0cff8102f68c245f3db1289a92e01 (diff)
Merge "Updates for ODL Neon"
Diffstat (limited to 'odlsli/odlsli-alpine/src/main/docker/Dockerfile')
-rw-r--r--odlsli/odlsli-alpine/src/main/docker/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/odlsli/odlsli-alpine/src/main/docker/Dockerfile b/odlsli/odlsli-alpine/src/main/docker/Dockerfile
index 97c5ae4c..024043b6 100644
--- a/odlsli/odlsli-alpine/src/main/docker/Dockerfile
+++ b/odlsli/odlsli-alpine/src/main/docker/Dockerfile
@@ -37,9 +37,14 @@ ENV ODL_BOOT_FEATURES_EXTRA ${odl.boot.features.extra}
# Install sudo and IP utilities
RUN apk update && apk --no-cache add sudo iputils openssl
+
# Enable wheel group
RUN sed -e 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g' -i /etc/sudoers
+# Create odl user
+RUN addgroup -S odl && adduser -S odl -G odl
+RUN addgroup odl wheel
+
COPY --from=stage0 --chown=odl:odl /opt /opt
# Add CCSDK repositories to boot repositories