Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
More attempts...
  • Loading branch information
curtishall authored Jan 8, 2025
1 parent 26afa53 commit f2c5af4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions actions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ RUN apt-get update \

# Allow service commands during installation
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d
RUN echo "rsyslog rsyslog/restart_on_upgrade boolean false" | debconf-set-selections

# Ensure noninteractive mode
ENV DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -153,8 +154,9 @@ RUN { \
echo bluecherry bluecherry/db_user string $BLUECHERRY_DB_USER; \
echo bluecherry bluecherry/db_password password $BLUECHERRY_DB_PASSWORD; \
} | debconf-set-selections \
&& export host=$BLUECHERRY_DB_HOST \
&& apt install -y --no-install-recommends ./bluecherry-apps/releases/bluecherry_*.deb
&& export host=$BLUECHERRY_DB_HOST
#apt install -y --no-install-recommends ./bluecherry-apps/releases/bluecherry_*.deb
RUN DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y ./bluecherry-apps/releases/bluecherry_*.deb

# Cleanup tasks
RUN apt-get clean \
Expand All @@ -168,8 +170,6 @@ 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.
Expand Down Expand Up @@ -222,6 +222,7 @@ RUN chmod +x /entrypoint.sh \
RUN rm /etc/nginx/sites-enabled/default

RUN chown bluecherry.bluecherry -R /var/lib/bluecherry
RUN rm /usr/sbin/policy-rc.d
#CMD rm -f /var/run/rsyslogd.pid
#CMD ["/usr/sbin/rsyslogd", "-n", "-f", "/etc/rsyslog.conf"]
#CMD service rsyslog start
Expand Down

0 comments on commit f2c5af4

Please sign in to comment.