1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #: enable rc_sys autodetect for DH images (#1036)

This commit is contained in:
Christian González 2021-03-26 16:28:50 +01:00 committed by GitHub
parent 34b80d5712
commit 40fc1a166f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -205,7 +205,8 @@ image_id=$(docker images -q one"$sid")
#-------------------------------------------------------------------------------
# Flatten container image
#-------------------------------------------------------------------------------
container_id=$(docker run -d "$image_id" /bin/true)
# rm -f /.dockerenv to avoid external tools to autodetect as docker images
container_id=$(docker run -d "$image_id" rm -f /.dockerenv)
docker export -o "$tarball" "$container_id" > /dev/null 2>&1

View File

@ -19,4 +19,4 @@ RUN rc-update add sshd default && \
rc-update add udev default && \
rc-update add networking default
RUN echo 'rc_sys=""' >> /etc/rc.conf
RUN sed -i '/rc_sys/s/^/#/' /etc/rc.conf