Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbazhenoff committed Mar 31, 2024
1 parent f8cbfe4 commit 2cbb5f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions roles/bareos/molecule/default/Dockerfile_alpine
Original file line number Diff line number Diff line change
@@ -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; \
Expand All @@ -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"]

0 comments on commit 2cbb5f0

Please sign in to comment.