initial commit

This commit is contained in:
Jonas Forsberg 2023-04-12 16:47:01 +02:00
commit f8d26fa93d
5 changed files with 38 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

10
Dockerfile Normal file
View File

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

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
.PHONY: default build
-include .env
VERSION=0.15.1-1.2
SHELL := /bin/bash
default: build
build:
podman build --build-arg VERSION=$(VERSION) --tag docker.io/bardak/restic:$(VERSION) .
push:
podman push --creds $(USERNAME):$(PASSWORD) docker.io/bardak/restic:$(VERSION)

4
README.md Normal file
View File

@ -0,0 +1,4 @@
# restic container
tumbleweed based container with restic to get sftp work

8
entrypoint.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
#
if [[ "$1" == "bash" ]]; then
exec /usr/bin/bash
else
restic "$@"
fi