Skip to content

Commit

Permalink
PBS
Browse files Browse the repository at this point in the history
  • Loading branch information
mixman68 committed Jul 10, 2023
1 parent 0d74539 commit 89cda9d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
MSMTP_HOST=srv3.209a.fr
MSMTP_PORT=587
MSMTP_TLS=on
MSMTP_STARTTLS=on
MSMTP_TLSCHECK=off
MSMTP_AUTH=on
MSMTP_USER=[email protected]
MSMTP_PASSWORD='Z274J4Jj<Bg@tW!'
MSMTP_FROM=[email protected]
PBS_ADMIN_PASSWORD=password
PUID=2000
PGID=2000
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM debian:bullseye

ARG PBS_VERSION=2.4.1-1

ADD http://download.proxmox.com/debian/proxmox-release-bullseye.gpg /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

#add key and apt install etc
Expand All @@ -8,7 +10,7 @@ RUN apt-get update \
&& chmod 644 /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg && echo "deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription" > /etc/apt/sources.list.d/proxmox.list \
&& mkdir -p /var/lib/dhcp/ \
&& apt-get update \
&& apt-get install -y proxmox-backup-server=2.3.1-1 proxmox-backup-client=2.3.1-1 nfs-common supervisor msmtp-mta gettext-base \
&& apt-get install -y proxmox-backup-server=${PBS_VERSION} proxmox-backup-client=${PBS_VERSION} nfs-common supervisor msmtp-mta gettext-base \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY msmtprc /etc/msmtprc
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.client
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM debian:bullseye-slim

ARG PBS_VERSION=2.4.1-1

ADD http://download.proxmox.com/debian/proxmox-release-bullseye.gpg /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

#add key and apt install etc
RUN chmod 644 /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg && echo "deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription" > /etc/apt/sources.list.d/proxmox.list \
&& apt-get update && apt-get install -y proxmox-backup-client=2.3.1-1 \
&& apt-get update && apt-get install -y proxmox-backup-client=${PBS_VERSION} \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3 changes: 3 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ envsubst < /tmp/msmtprc.env > /etc/msmtprc
cp /etc/supervisor/conf.d/supervisord.conf /tmp/supervisord.conf
envsubst < /tmp/supervisord.conf > /etc/supervisor/conf.d/supervisord.conf

# Remove lock files if present
rm /etc/proxmox-backup/*.lock /etc/proxmox-backup/.*.lck

exec "$@"

0 comments on commit 89cda9d

Please sign in to comment.