fixed entrypoint and using tumbleweed version instead of restic verson as tag
This commit is contained in:
parent
a06e4e8f0a
commit
f860eba8a2
11
Dockerfile
11
Dockerfile
@ -1,10 +1,13 @@
|
|||||||
FROM registry.opensuse.org/opensuse/tumbleweed:latest
|
|
||||||
|
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
FROM registry.opensuse.org/opensuse/tumbleweed:${VERSION}
|
||||||
|
|
||||||
|
|
||||||
RUN zypper --non-interactive install \
|
RUN zypper --non-interactive install \
|
||||||
openssh-clients \
|
openssh-clients \
|
||||||
restic-${VERSION} \
|
restic \
|
||||||
&& zypper clean -a
|
&& zypper clean -a
|
||||||
ADD entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
||||||
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
|
CMD ["start"]
|
||||||
|
2
Makefile
2
Makefile
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-include .env
|
-include .env
|
||||||
|
|
||||||
VERSION=20230415
|
VERSION=20230411
|
||||||
IMAGENAME=restic
|
IMAGENAME=restic
|
||||||
REPO=docker.io/bardak
|
REPO=docker.io/bardak
|
||||||
|
|
||||||
|
10
entrypoint.sh
Executable file → Normal file
10
entrypoint.sh
Executable file → Normal file
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
|
||||||
|
|
||||||
if [[ "$1" == "bash" ]]; then
|
|
||||||
exec /usr/bin/bash
|
if [[ "$1" == "start" ]]; then
|
||||||
|
/usr/bin/restic "$@"
|
||||||
else
|
else
|
||||||
restic "$@"
|
exec "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user