summaryrefslogtreecommitdiffstats
path: root/odlsli/odlsli-alpine/src/main/docker
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2019-07-30 12:13:33 -0400
committerTimoney, Dan (dt5972) <dtimoney@att.com>2019-08-15 12:40:44 -0400
commit53cb68740aa0cff8102f68c245f3db1289a92e01 (patch)
tree8554e59b523a011b51c0b1e9ceb78977d0e203b7 /odlsli/odlsli-alpine/src/main/docker
parent0f4c96b5b6081efeecc73a748822a765cc38d62b (diff)
Updates for ODL Neon
Update to build ODLSLI based on OpenDaylight Neon. Change-Id: I85cbdf38d385f3a4ef15e8fe7939af788c350de1 Issue-ID: CCSDK-1389 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Diffstat (limited to 'odlsli/odlsli-alpine/src/main/docker')
-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