summaryrefslogtreecommitdiffstats
path: root/odlsli/odlsli-alpine
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2019-05-07 10:40:24 -0400
committerDan Timoney <dtimoney@att.com>2019-05-07 14:40:59 +0000
commitcb67f01cc8b22e0d4c23bf4125d8ab748d7600c5 (patch)
tree31a0d086abe21f0056b421918da59700841fa91a /odlsli/odlsli-alpine
parentf660cdce6394396652af3f3517696eebf3f0cbeb (diff)
Install openssl, iputils
Install openssl and iputils in odlsli alpine container. Change-Id: I1211ebd5b4a6d1bec16456594a733bccdeb7f165 Issue-ID: CCSDK-1311 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Diffstat (limited to 'odlsli/odlsli-alpine')
-rw-r--r--odlsli/odlsli-alpine/src/main/docker/Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/odlsli/odlsli-alpine/src/main/docker/Dockerfile b/odlsli/odlsli-alpine/src/main/docker/Dockerfile
index 5dbf8d4c..926aa0b5 100644
--- a/odlsli/odlsli-alpine/src/main/docker/Dockerfile
+++ b/odlsli/odlsli-alpine/src/main/docker/Dockerfile
@@ -28,8 +28,15 @@ RUN cp $ODL_HOME/etc/org.apache.karaf.features.cfg $ODL_HOME/etc/org.apache.kara
RUN sed -i -e "\|featuresRepositories|s|$|, ${CCSDK_SLI_CORE_REPO}, ${CCSDK_SLI_ADAPTORS_REPO}, ${CCSDK_SLI_NORTHBOUND_REPO}, ${CCSDK_SLI_PLUGINS_REPO}, ${CCSDK_FEATURES_REPO}|" $ODL_HOME/etc/org.apache.karaf.features.cfg
RUN sed -i -e "\|featuresBoot[^a-zA-Z]|s|$|,${ODL_BOOT_FEATURES_EXTRA}|" $ODL_HOME/etc/org.apache.karaf.features.cfg
+# Install sudo and IP utilities
+RUN apk update && apk 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
# Install ansible
#COPY ansible-sources.list /etc/apt/sources.list.d