[skip-ci] Update docker-file resources

This commit is contained in:
erik 2022-09-27 16:30:58 +02:00
parent 6708fae81c
commit 1be50f6680
2 changed files with 2 additions and 4 deletions

View file

@ -1,8 +1,7 @@
#!/bin/bash #!/bin/bash
# "Authorization: token YOURAUTHTOKEN"
function get-and-unzip-website-data() { function get-and-unzip-website-data() {
curl -H "$AUTHTOKEN" -O $REPOZIPURL # REPOZIPURL = https://your.gitea.host/api/v1/repos/<owner>/<repo>/archive/main.zip curl -H "Authorization: token $AUTHTOKEN" -O $REPOZIPURL # REPOZIPURL = https://your.gitea.host/api/v1/repos/<owner>/<repo>/archive/main.zip
mkdir $BUILDDIR mkdir $BUILDDIR
unzip main.zip -D $BUILDDIR unzip main.zip -D $BUILDDIR
} }
@ -14,5 +13,5 @@ function build-and-extract-website() {
# set variables from environment # set variables from environment
# read write zugriff sicherstellen # read write zugriff sicherstellen
function move-website-files-to-target() { 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
} }

View file

@ -3,7 +3,6 @@
apt update > /dev/null; apt update > /dev/null;
install -m 0700 /tmp/entrypoint.sh / install -m 0700 /tmp/entrypoint.sh /
install -m 0700 /tmp/functions.sh /usr/local/bin/ install -m 0700 /tmp/functions.sh /usr/local/bin/
install -m 0700 /tmp/exclude.pattern /home/$USER install -m 0700 /tmp/exclude.pattern /home/$USER
install -m 0700 /tmp/project.clj /home/$USER/.lein/ install -m 0700 /tmp/project.clj /home/$USER/.lein/