TomHarrop/misc-utils:borgbackup_1.1.10

$ singularity pull shub://TomHarrop/misc-utils:borgbackup_1.1.10

Singularity Recipe

Bootstrap: docker
From: ubuntu:19.10

%help

    borgbackup 1.1.10

%labels

    MAINTAINER "Tom Harrop (twharrop@gmail.com)"
    VERSION "borgbackup 1.1.10"

%post
    # faster apt downloads
    export DEBIAN_FRONTEND=noninteractive
    (
        . /etc/os-release
        cat << _EOF_ > mirror.txt
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME} main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-security main restricted universe multiverse

_EOF_
        mv /etc/apt/sources.list /etc/apt/sources.list.bak
        cat mirror.txt /etc/apt/sources.list.bak > /etc/apt/sources.list
    )

    # install dependencies
    apt-get update
    apt-get install -y \
        build-essential \
        fuse \
        libacl1 \
        libacl1-dev \
        libfuse-dev \
        libssl-dev \
        openssl \
        pkg-config \
        python-virtualenv \
        python3 \
        python3-dev \
        python3-pip \
        python3-virtualenv \
        wget 

    # download borg
    wget -O "borg.tar.gz" \
        --no-check-certificate \
https://github.com/borgbackup/borg/releases/download/1.1.10/borgbackup-1.1.10.tar.gz
    mkdir borg
    tar -zxf borg.tar.gz \
        -C borg \
        --strip-components 1

    # install
    cd borg || exit 1
    pip3 install -r requirements.d/development.txt
    pip3 install -r requirements.d/docs.txt
    pip3 install -r requirements.d/fuse.txt
    pip3 install .

    cd .. || exit 1
    rm -rf borg borg.tar.gz

%runscript

    exec /usr/local/bin/borg "$@"

Collection


View on Datalad

Metrics

key value
id /containers/TomHarrop-misc-utils-borgbackup_1.1.10
collection name TomHarrop/misc-utils
branch master
tag borgbackup_1.1.10
commit a47adc2bc5a49be077a4dfb225530a1d8d2583e2
version (container hash) a2cefe6ec9185d8251314e42930b4496328c7ed08ec98b1021ca01f4e3e29952
build date 2020-01-05T22:05:42.022Z
size (MB) 214.65234375
size (bytes) 225079296
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.