From b3641b7a87257d594ea312d47090a89c09f52e60 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 6 Oct 2022 13:01:28 +0200 Subject: [PATCH] feat: add build-script, explicitly specify client version --- Dockerfile | 12 +++++++----- build.sh | 5 +++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100755 build.sh diff --git a/Dockerfile b/Dockerfile index 4f3839c..0c3b8f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,13 @@ -from debian +FROM debian RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget lftp mariadb-client -RUN TF=`mktemp` &&\ - wget "https://hndl.urbackup.org/Client/latest/update/UrBackupUpdateLinux.sh" -O $TF &&\ - sh $TF silent &&\ - rm $TF +ARG CLIENT_VERSION + +RUN TF=`mktemp` && \ + 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 diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..1bd2538 --- /dev/null +++ b/build.sh @@ -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} .