renamed pbsclient to pbs-client folder and docker image
All checks were successful
/ build-image (push) Successful in 16s
All checks were successful
/ build-image (push) Successful in 16s
This commit is contained in:
12
pbs-client/docker/Dockerfile
Normal file
12
pbs-client/docker/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt install -y wget
|
||||
RUN wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
|
||||
RUN echo "deb http://download.proxmox.com/debian/pbs-client bookworm main" > /etc/apt/sources.list.d/pbs.list
|
||||
RUN apt update
|
||||
RUN apt install -y proxmox-backup-client
|
||||
COPY ./docker/scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|
||||
10
pbs-client/docker/scripts/entrypoint.sh
Executable file
10
pbs-client/docker/scripts/entrypoint.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$MODE" == "shell" ]]; then
|
||||
"$@"
|
||||
else
|
||||
proxmox-backup-client "$@"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user