From ba7651420e8824fd20e3ba5800c296a383e84abe Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 15 Sep 2023 10:10:50 +0800 Subject: [PATCH] gitea --- docker/w9gitea/Dockerfile | 4 ++-- docker/w9gitea/hook/run | 2 ++ docker/w9gitea/init.sh | 0 docker/w9gitea/init/run | 7 +++++++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 docker/w9gitea/init.sh create mode 100644 docker/w9gitea/init/run diff --git a/docker/w9gitea/Dockerfile b/docker/w9gitea/Dockerfile index ecafa2c4..625856c8 100644 --- a/docker/w9gitea/Dockerfile +++ b/docker/w9gitea/Dockerfile @@ -11,6 +11,6 @@ RUN git clone --depth=1 https://github.com/Websoft9/docker-library.git \ && cp -r library / \ && rm -rf library COPY --from=build-hook /hook /usr/local/bin/hook - +COPY /init.sh /usr/local/bin/init.sh COPY hook /etc/s6 -RUN chmod -R 755 /etc/s6/hook +RUN chmod -R 755 /etc/s6/hook /usr/local/bin/init.sh diff --git a/docker/w9gitea/hook/run b/docker/w9gitea/hook/run index 449cf45f..16a5125c 100644 --- a/docker/w9gitea/hook/run +++ b/docker/w9gitea/hook/run @@ -1,5 +1,7 @@ #!/bin/bash +s6-svwait -u /etc/s6/gitea + pushd /root >/dev/null exec su-exec $USER /usr/local/bin/hook popd diff --git a/docker/w9gitea/init.sh b/docker/w9gitea/init.sh new file mode 100644 index 00000000..e69de29b diff --git a/docker/w9gitea/init/run b/docker/w9gitea/init/run new file mode 100644 index 00000000..8ccdda85 --- /dev/null +++ b/docker/w9gitea/init/run @@ -0,0 +1,7 @@ +#!/bin/bash + +s6-svwait -u /etc/s6/gitea + +pushd /root >/dev/null +exec /usr/local/bin/init.sh +popd