From e8902aded4cc30ecbd2945e681f6ddc8cf397e55 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 17 Aug 2023 10:47:34 +0200 Subject: [PATCH] feat: open repo on entry --- Dockerfile | 2 +- entrypoint.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e36e0b5..f521042 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM kopia/kopia ADD entrypoint.sh / -ENTRYPOINT [ "/entrypoint.sh" ] +ENTRYPOINT [ "sh /entrypoint.sh" ] diff --git a/entrypoint.sh b/entrypoint.sh index 9449a24..4e98ae0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,10 @@ #!/bin/sh kopia --version + +kopia repository connect filesystem \ + --path /repository \ + --override-hostname ${KOPIA_HOSTNAME} \ + --override-username ${KOPIA_USERNAME} + sleep infinity