2023-12-13 14:40:26 -04:00
|
|
|
FROM debian:bookworm-slim
|
2021-08-19 14:54:18 -04:00
|
|
|
|
|
|
|
ARG source="https://github.com/abbbi/virtnbdbackup"
|
|
|
|
|
|
|
|
LABEL container.name="virtnbdbackup-docker"
|
|
|
|
LABEL container.source.description="Backup utiliy for Libvirt kvm / qemu with Incremental backup support via NBD"
|
|
|
|
LABEL container.description="virtnbdbackup and virtnbdrestore (plus depedencies) to run on hosts with libvirt >= 6.0.0"
|
|
|
|
LABEL container.source=$source
|
2023-12-13 19:14:26 -04:00
|
|
|
LABEL container.version="1.2"
|
2023-12-13 14:40:26 -04:00
|
|
|
LABEL maintainer="Adrián Parilli <adrian.parilli@staffwerke.de>"
|
2021-08-19 14:54:18 -04:00
|
|
|
|
|
|
|
# Deploys dependencies and pulls sources, installing virtnbdbackup and removing unnecessary content:
|
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2023-12-13 14:40:26 -04:00
|
|
|
ca-certificates git python3-all openssh-client python3-libnbd python3-libvirt python3-lz4 python3-setuptools python3-tqdm qemu-utils python3-lxml python3-paramiko && \
|
2021-08-19 14:54:18 -04:00
|
|
|
git clone $source.git && \
|
|
|
|
cd virtnbdbackup && python3 setup.py install && cd .. && \
|
|
|
|
apt-get purge -y git ca-certificates && apt-get -y autoremove --purge && apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /virtnbdbackup
|
|
|
|
|
|
|
|
# Default folder:
|
|
|
|
WORKDIR /
|