From 779f3b85466ebac147d951d06a3c6680ef7af2c2 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Thu, 20 Jul 2017 21:55:14 +0100 Subject: [PATCH 1/2] internal git pull --- Dockerfile | 3 +++ README.md | 1 + root/etc/cont-init.d/30-config | 5 +++++ root/etc/cont-init.d/30-install | 9 --------- root/etc/services.d/htpcmanager/run | 0 root/etc/services.d/vnstat/run | 0 6 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 root/etc/cont-init.d/30-config delete mode 100755 root/etc/cont-init.d/30-install mode change 100755 => 100644 root/etc/services.d/htpcmanager/run mode change 100755 => 100644 root/etc/services.d/vnstat/run diff --git a/Dockerfile b/Dockerfile index 9b16903..d5d7f49 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN \ pip install --no-cache-dir -U \ cherrypy && \ +# install app + git clone --depth 1 https://github.com/Hellowlol/HTPC-Manager.git /app/htpcmanager && \ + # cleanup rm -rf \ /root/.cache \ diff --git a/README.md b/README.md index 44f6c50..e5659d4 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ Smartmontools has not been included, you can safely ignore the warning error in ## Versions ++ **20.07.17:** Internal git pull instead of at runtime. + **25.05.17:** Rebase to alpine 3.6. + **07.02.17:** Rebase to alpine 3.5. + **14.10.16:** Add version layer information. diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config new file mode 100644 index 0000000..75e7f95 --- /dev/null +++ b/root/etc/cont-init.d/30-config @@ -0,0 +1,5 @@ +#!/usr/bin/with-contenv bash + +# permissions +chown -R abc:abc \ + /app diff --git a/root/etc/cont-init.d/30-install b/root/etc/cont-init.d/30-install deleted file mode 100755 index 217bf62..0000000 --- a/root/etc/cont-init.d/30-install +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/with-contenv bash - -# install app -[[ ! -d /app/htpcmanager/.git ]] && \ - git clone https://github.com/Hellowlol/HTPC-Manager.git /app/htpcmanager - -# permissions -chown -R abc:abc \ - /app diff --git a/root/etc/services.d/htpcmanager/run b/root/etc/services.d/htpcmanager/run old mode 100755 new mode 100644 diff --git a/root/etc/services.d/vnstat/run b/root/etc/services.d/vnstat/run old mode 100755 new mode 100644 From abd299863beb0c0491e986242dce0f31ae522db6 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Thu, 20 Jul 2017 21:59:58 +0100 Subject: [PATCH 2/2] internal git pull --- Dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile old mode 100755 new mode 100644