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:
1
pbs-client/dev/.gitignore
vendored
Normal file
1
pbs-client/dev/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
pbsclient/dev/compose.override.yml
|
||||
15
pbs-client/dev/compose.yml
Normal file
15
pbs-client/dev/compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: pbsclient-dev
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
dockerfile: docker/Dockerfile
|
||||
context: ../
|
||||
command: ${COMMAND}
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV}
|
||||
- PBS_PASSWORD=${PBS_PASSWORD}
|
||||
- PBS_REPOSITORY=${PBS_REPOSITORY}
|
||||
- PBS_FINGERPRINT=${PBS_FINGERPRINT}
|
||||
- MODE=${MODE}
|
||||
|
||||
|
||||
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