Compare commits

..

No commits in common. "6c13328ee4c458b92a6678b7aa40d4277cd3dd7b" and "9bd451d131ffa6367dc5de2379f4ae0fad7654ed" have entirely different histories.

2 changed files with 4 additions and 18 deletions

View File

@ -1,12 +1,12 @@
ARG VERSION
FROM registry.opensuse.org/opensuse/tumbleweed:${VERSION}
RUN zypper --non-interactive install \
openssh-clients \
restic \
&& zypper clean -a
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

View File

@ -6,15 +6,9 @@
VERSION=20230411
IMAGENAME=restic
REPO=git.rre.nu/jonas
TITLE=restic with openSSH based on openSUSE Tumpleweed
DESC=Image containing restic & openSSH, based on openSUSE Tumbleweed
BUILD_TIME := $(shell TZ=UTC date --iso-8601=ns)
SHELL := /bin/bash
default: build
require_clean_git:
git update-index -q --ignore-submodules --refresh
git diff-files --quiet --ignore-submodules
@ -27,18 +21,10 @@ require_clean_git:
exit 1; \
fi
default: build
build:
podman build \
--build-arg VERSION="$(VERSION)" \
--label org.opencontainers.image.source="https://${REPO}/${IMAGENAME}/src/tag/${VERSION}" \
--label org.opencontainers.image.title="${TITLE}" \
--label org.opencontainers.image.description="${DESC}" \
--label org.opencontainers.image.created="$(shell TZ=UTC date --iso-8601=ns)" \
--label org.opencontainers.image.url="https://${REPO}/-/packages/container/${IMAGENAME}/${VERSION}" \
--label org.opencontainers.image.version="${VERSION}" \
--label org.opencontainers.image.vendor="Jonas Forsberg" \
--tag docker.io/bardak/restic:$(VERSION) \
.
podman build --build-arg VERSION=$(VERSION) --tag docker.io/bardak/restic:$(VERSION) .
clean:
podman image rm docker.io/bardak/restic:$(VERSION)