24 lines
1.0 KiB
Docker
24 lines
1.0 KiB
Docker
FROM debian:bullseye-slim
|
|
|
|
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
|
|
LABEL container.version="0.22"
|
|
LABEL maintainer="Adrián Parilli <a.parilli@staffwerke.de>"
|
|
|
|
# Deploys dependencies and pulls sources, installing virtnbdbackup and removing unnecessary content:
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
ca-certificates git python3-all python3-libnbd python3-libvirt python3-lz4 python3-setuptools python3-tqdm qemu-utils && \
|
|
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 /
|