added proxmox backup client docker image

This commit is contained in:
2025-01-13 23:25:02 +00:00
parent b87219f1a3
commit f835f8af62
7 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
on:
push:
paths:
- "docker/**"
- ".gitea/**"
schedule:
- cron: "0 16 * * Sun"
jobs:
build-docker-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to git.limbosolutions.com docker registry
uses: docker/login-action@v3
with:
registry: git.limbosolutions.com
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
- name: Build and push Docker images
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ${{gitea.workspace}}/docker/Dockerfile
push: true
tags: git.limbosolutions.com/kb/pbsclient

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
**.env
pbsclient/dev/compose.override.yml

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"cSpell.words": [
"pbsclient"
]
}

1
pbsclient/dev/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
pbsclient/dev/compose.override.yml

11
pbsclient/dev/compose.yml Normal file
View File

@@ -0,0 +1,11 @@
name: pbsclient-dev
services:
app:
build:
dockerfile: docker/Dockerfile
context: ../
environment:
- APP_ENV=${APP_ENV}
- PBS_PASSWORD=${PBS_PASSWORD}
- PBS_REPOSITORY=${PBS_REPOSITORY}
- PBS_FINGERPRINT=${PBS_FINGERPRINT}

View File

@@ -0,0 +1,11 @@
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 /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

View File

@@ -0,0 +1,3 @@
#!bin/bash
proxmox-backup-client "$@"