diff --git a/roles/bareos/molecule/default/Dockerfile_alpine b/roles/bareos/molecule/default/Dockerfile_alpine index 17e9ee2..daa25be 100644 --- a/roles/bareos/molecule/default/Dockerfile_alpine +++ b/roles/bareos/molecule/default/Dockerfile_alpine @@ -1,8 +1,9 @@ ARG image_platform ARG image_tag - +# kics-scan disable=b03a748a-542d-44f4-bb86-9199ab4fd2d5 FROM ${image_platform}:${image_tag} -# kics-scan ignore-block # hadolint ignore=SC3014,SC2154 +# hadolint ignore=SC3014,SC2154 +# kics-scan ignore-block RUN apk update; \ apk --no-cache add sudo bash dbus python3 gnupg ca-certificates openrc; \ mkdir -p /run/openrc; \ @@ -11,7 +12,7 @@ RUN apk update; \ sed -i -e 's/#rc_sys=""/rc_sys="lxc"/g' -e 's/^#\(rc_logger="YES"\)$/\1/' /etc/rc.conf; \ sed -i "/tty/d" /etc/inittab; \ sed -i "s/hostname $opts/# hostname $opts/g" /etc/init.d/hostname; \ - sed -i "s/mount -t tmpfs/# mount -t tmpfs/g" /lib/rc/sh/init.sh + bash -c 'sed -i "s/mount -t tmpfs/# mount -t tmpfs/g" /lib/rc/sh/init.sh' VOLUME ["/sys/fs/cgroup"] ENTRYPOINT ["/sbin/init"]