feat: add build-script, explicitly specify client version

This commit is contained in:
Michael Mandl 2022-10-06 13:01:28 +02:00
parent 8efd42599a
commit b3641b7a87
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 12 additions and 5 deletions

View file

@ -1,11 +1,13 @@
from debian FROM debian
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget lftp mariadb-client RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget lftp mariadb-client
RUN TF=`mktemp` &&\ ARG CLIENT_VERSION
wget "https://hndl.urbackup.org/Client/latest/update/UrBackupUpdateLinux.sh" -O $TF &&\
sh $TF silent &&\ RUN TF=`mktemp` && \
rm $TF wget "https://hndl.urbackup.org/Client/${CLIENT_VERSION}/UrBackup%20Client%20Linux%20${CLIENT_VERSION}.sh" -O $TF && \
sh $TF silent && \
rm $TF
EXPOSE 35621/TCP 35622/UDP 35623/TCP EXPOSE 35621/TCP 35622/UDP 35623/TCP

5
build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
CLIENT_VERSION=2.5.19
docker build --build-arg CLIENT_VERSION=${CLIENT_VERSION} --tag mandlm/urbackup-internet-client:latest --tag mandlm/urbackup-internet-client:${CLIENT_VERSION} .