added proxmox backup client docker image
This commit is contained in:
32
.gitaction/workflows/ docker-image.deploy.yml
Normal file
32
.gitaction/workflows/ docker-image.deploy.yml
Normal 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
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
**.env
|
||||
pbsclient/dev/compose.override.yml
|
||||
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"pbsclient"
|
||||
]
|
||||
}
|
||||
1
pbsclient/dev/.gitignore
vendored
Normal file
1
pbsclient/dev/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
pbsclient/dev/compose.override.yml
|
||||
11
pbsclient/dev/compose.yml
Normal file
11
pbsclient/dev/compose.yml
Normal 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}
|
||||
11
pbsclient/docker/Dockerfile
Normal file
11
pbsclient/docker/Dockerfile
Normal 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" ]
|
||||
3
pbsclient/docker/scripts/entrypoint.sh
Normal file
3
pbsclient/docker/scripts/entrypoint.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!bin/bash
|
||||
|
||||
proxmox-backup-client "$@"
|
||||
Reference in New Issue
Block a user