diff options
Diffstat (limited to 'odlsli/odlsli-alpine/src/main/docker')
-rw-r--r-- | odlsli/odlsli-alpine/src/main/docker/Dockerfile | 7 |
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 |