Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Smack policy-rc.d with a big stick
  • Loading branch information
curtishall authored Jan 8, 2025
1 parent 8bcf4fb commit 26afa53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions actions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ RUN apt-get update \
rsyslog nmap curl sysstat iproute2 \
openssl ca-certificates ssl-cert gnupg gnupg2 gnupg1 sudo mysql-client python3-pip wget curl nano cron

# Allow service commands during installation
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d

# Ensure noninteractive mode
ENV DEBIAN_FRONTEND=noninteractive

RUN { \
echo "[client]"; \
echo "user=$MYSQL_ADMIN_LOGIN"; \
Expand Down Expand Up @@ -162,6 +168,9 @@ RUN apt-get clean \
RUN rm -f /root/.my.cnf \
&& rm -f /etc/bluecherry.conf

RUN rm /usr/sbin/policy-rc.d


# When running rsyslog in a container, we need to disable imklog
# since the in-container process won't be allowed access to it.
RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
Expand Down

0 comments on commit 26afa53

Please sign in to comment.