Use master version.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-16 11:31:09 +01:00
parent d7078d1625
commit 571bbf95dc
2 changed files with 6 additions and 3 deletions

View File

@@ -4,7 +4,8 @@ FROM alpine:3.17.0
LABEL maintainer="Adrien Ferrand <ferrand.ad@gmail.com>"
ARG BACKUPPC_VERSION="4.4.0"
#ARG BACKUPPC_VERSION="4.4.0"
ARG BACKUPPC_VERSION="master"
ARG BACKUPPC_XS_VERSION="0.62"
ARG RSYNC_BPC_VERSION="3.1.3.0"
@@ -38,7 +39,8 @@ RUN apk --no-cache --update add \
&& sed -i -e 's/^# Host \*/Host */g' /etc/ssh/ssh_config \
&& sed -i -e 's/^# StrictHostKeyChecking ask/ StrictHostKeyChecking no/g' /etc/ssh/ssh_config \
# Get BackupPC, it will be installed at runtime to allow dynamic upgrade of existing config/pool
&& curl -o /root/BackupPC-$BACKUPPC_VERSION.tar.gz -L https://github.com/backuppc/backuppc/releases/download/$BACKUPPC_VERSION/BackupPC-$BACKUPPC_VERSION.tar.gz \
#&& curl -o /root/BackupPC-$BACKUPPC_VERSION.tar.gz -L https://github.com/backuppc/backuppc/releases/download/$BACKUPPC_VERSION/BackupPC-$BACKUPPC_VERSION.tar.gz \
&& curl -o /root/BackupPC-$BACKUPPC_VERSION.tar.gz -L https://github.com/backuppc/backuppc/archive/refs/heads/master.tar.gz \
# Prepare backuppc home
&& mkdir -p /home/backuppc && cd /home/backuppc \
# Mark the docker as not run yet, to allow entrypoint to do its stuff

View File

@@ -42,6 +42,7 @@ if [ -f /firstrun ]; then
cd /root
tar xf "BackupPC-$BACKUPPC_VERSION.tar.gz"
cd "/root/BackupPC-$BACKUPPC_VERSION"
cd "/root/backuppc-$BACKUPPC_VERSION"
# Configure WEB UI access
configure_admin=""
@@ -120,7 +121,7 @@ if [ -f /firstrun ]; then
fi
# Clean
rm -rf "/root/BackupPC-$BACKUPPC_VERSION.tar.gz" "/root/BackupPC-$BACKUPPC_VERSION" /firstrun
rm -rf "/root/BackupPC-$BACKUPPC_VERSION.tar.gz" "/root/BackupPC-$BACKUPPC_VERSION" "/root/backuppc-$BACKUPPC_VERSION" /firstrun
fi
export BACKUPPC_UUID