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 c7470d8 commit 7801d40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SPELL_LYCHEE_CONFIG_FILE: .lychee.toml
REPOSITORY_CHECKOV_ARGUMENTS: --skip-check CKV_ANSIBLE_1,CKV_ANSIBLE_2,CKV_ANSIBLE_3,CKV2_ANSIBLE_1,CKV2_ANSIBLE_2
PRE_COMMANDS:
- command: pip3 install Pygments
venv: restructuredtext_lint
cwd: "workspace"
DOCKERFILE_HADOLINT_FILE_NAMES_REGEX: ["Dockerfile.+"]
DISABLE_LINTERS:
- SPELL_CSPELL
Expand Down
16 changes: 8 additions & 8 deletions roles/bareos/molecule/default/Dockerfile_alpine
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ 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 && \
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
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 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 7801d40

Please sign in to comment.