initial commit
This commit is contained in:
commit
f8d26fa93d
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.env
|
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
15
Makefile
Normal 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
4
README.md
Normal file
@ -0,0 +1,4 @@
|
||||
# restic container
|
||||
|
||||
tumbleweed based container with restic to get sftp work
|
||||
|
8
entrypoint.sh
Executable file
8
entrypoint.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
|
||||
if [[ "$1" == "bash" ]]; then
|
||||
exec /usr/bin/bash
|
||||
else
|
||||
restic "$@"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user