Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Debian Buster #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
FROM debian:8
FROM debian:buster

MAINTAINER confirm IT solutions, dbarton

#
# Add user.
# Ensure the correct variables are set for APT
#

RUN \
groupadd -g 666 mybackup && \
useradd -u 666 -g 666 -d /backup -c "MySQL Backup User" mybackup
ENV DEBIAN_FRONTEND=noninteractive TERM=linux

#
# Install required packages.
# Install start script.
#

RUN \
apt-get -y update && \
apt-get -y install mydumper && \
rm -rf /var/lib/apt/lists/*
COPY init.sh /init.sh

#
# Install start script.
# Add user and install required packages.
#

COPY init.sh /init.sh
RUN chmod 750 /init.sh
RUN \
groupadd -g 666 mybackup && \
useradd -u 666 -g 666 -d /backup -c "MySQL Backup User" mybackup && \
apt-get -y update && \
apt-get -y install mydumper && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
find /var/log -type f | while read f; do echo -ne '' > $f; done && \
chmod 750 /init.sh

#
# Set container settings.
Expand Down