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 4071a31 commit f8cbfe4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions roles/bareos/molecule/default/Dockerfile_alpine
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ ARG image_platform
ARG image_tag

FROM ${image_platform}:${image_tag}
# hadolint ignore=SC3014,SC2154
RUN apk update && \
apk --no-cache add sudo bash dbus python3 gnupg ca-certificates openrc
RUN mkdir -p /run/openrc
RUN touch /run/openrc/softlevel
RUN bash -c 'echo "rc_provide=\"loopback net\"" >> /etc/rc.conf'
RUN sed -i -e 's/#rc_sys=""/rc_sys="lxc"/g' -e 's/^#\(rc_logger="YES"\)$/\1/' /etc/rc.conf
RUN sed -i "/tty/d" /etc/inittab
RUN sed -i "s/hostname $opts/# hostname $opts/g" /etc/init.d/hostname
RUN bash -c 'sed -i "s/mount -t tmpfs/# mount -t tmpfs/g" /lib/rc/sh/init.sh'
# kics-scan ignore-block # hadolint ignore=SC3014,SC2154
RUN apk update; \
apk --no-cache add sudo bash dbus python3 gnupg ca-certificates openrc; \
mkdir -p /run/openrc; \
touch /run/openrc/softlevel; \
bash -c 'echo "rc_provide=\"loopback net\"" >> /etc/rc.conf'; \
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

VOLUME ["/sys/fs/cgroup"]
ENTRYPOINT ["/sbin/init"]

0 comments on commit f8cbfe4

Please sign in to comment.