feat: add build-script, explicitly specify client version
This commit is contained in:
parent
8efd42599a
commit
b3641b7a87
2 changed files with 12 additions and 5 deletions
|
@ -1,9 +1,11 @@
|
|||
from debian
|
||||
FROM debian
|
||||
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget lftp mariadb-client
|
||||
|
||||
ARG CLIENT_VERSION
|
||||
|
||||
RUN TF=`mktemp` && \
|
||||
wget "https://hndl.urbackup.org/Client/latest/update/UrBackupUpdateLinux.sh" -O $TF &&\
|
||||
wget "https://hndl.urbackup.org/Client/${CLIENT_VERSION}/UrBackup%20Client%20Linux%20${CLIENT_VERSION}.sh" -O $TF && \
|
||||
sh $TF silent && \
|
||||
rm $TF
|
||||
|
||||
|
|
5
build.sh
Executable file
5
build.sh
Executable 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} .
|
Loading…
Reference in a new issue