From 1be50f66801b3929a77b1639d8163a380c4e9694 Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 27 Sep 2022 16:30:58 +0200 Subject: [PATCH] [skip-ci] Update docker-file resources --- .../c4k-website-build/image/resources/functions.sh | 5 ++--- infrastructure/c4k-website-build/image/resources/install.sh | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/infrastructure/c4k-website-build/image/resources/functions.sh b/infrastructure/c4k-website-build/image/resources/functions.sh index fac8337..37102f0 100644 --- a/infrastructure/c4k-website-build/image/resources/functions.sh +++ b/infrastructure/c4k-website-build/image/resources/functions.sh @@ -1,8 +1,7 @@ #!/bin/bash -# "Authorization: token YOURAUTHTOKEN" function get-and-unzip-website-data() { - curl -H "$AUTHTOKEN" -O $REPOZIPURL # REPOZIPURL = https://your.gitea.host/api/v1/repos///archive/main.zip + curl -H "Authorization: token $AUTHTOKEN" -O $REPOZIPURL # REPOZIPURL = https://your.gitea.host/api/v1/repos///archive/main.zip mkdir $BUILDDIR unzip main.zip -D $BUILDDIR } @@ -14,5 +13,5 @@ function build-and-extract-website() { # set variables from environment # read write zugriff sicherstellen function move-website-files-to-target() { - rsync -ru --exclude-from "/home/$USER/exclude.pattern" --delete WEB-INF/classes/public/* $TARGETDIR # TARGETDIR = mount/path/to/website-content-vol with write permission + rsync -ru --exclude-from "/home/$USER/exclude.pattern" --delete WEB-INF/classes/public/* $TARGETDIR } diff --git a/infrastructure/c4k-website-build/image/resources/install.sh b/infrastructure/c4k-website-build/image/resources/install.sh index 903b473..5ad0b59 100755 --- a/infrastructure/c4k-website-build/image/resources/install.sh +++ b/infrastructure/c4k-website-build/image/resources/install.sh @@ -3,7 +3,6 @@ apt update > /dev/null; install -m 0700 /tmp/entrypoint.sh / - install -m 0700 /tmp/functions.sh /usr/local/bin/ install -m 0700 /tmp/exclude.pattern /home/$USER install -m 0700 /tmp/project.clj /home/$USER/.lein/