mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-17 05:42:54 -04:00
switch to package install
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get update
|
||||
fi
|
||||
@@ -1 +0,0 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-apt-get/run
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -f "/mod-repo-packages-to-install.list" ]; then
|
||||
echo "**** Installing all mod packages ****"
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
DEBIAN_FRONTEND="noninteractive"
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
$(cat /mod-repo-packages-to-install.list)
|
||||
elif [ -f /usr/bin/apk ]; then
|
||||
apk add --no-cache \
|
||||
$(cat /mod-repo-packages-to-install.list)
|
||||
fi
|
||||
else
|
||||
echo "**** No repo packages to install, skipping ****"
|
||||
fi
|
||||
|
||||
if [ -f "/mod-pip-packages-to-install.list" ]; then
|
||||
echo "**** Installing all pip packages ****"
|
||||
python3 -m pip install -U pip wheel setuptools
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
PIP_ARGS="-f https://wheel-index.linuxserver.io/ubuntu/"
|
||||
elif [ -f /usr/bin/apk ]; then
|
||||
ALPINE_VER=$(cat /etc/apk/repositories | grep main | sed 's|.*alpine/v||' | sed 's|/main.*||')
|
||||
if [ "${ALPINE_VER}" = "3.14" ]; then
|
||||
PIP_ARGS="-f https://wheel-index.linuxserver.io/alpine/"
|
||||
else
|
||||
PIP_ARGS="-f https://wheel-index.linuxserver.io/alpine-${ALPINE_VER}/"
|
||||
fi
|
||||
fi
|
||||
python3 -m pip install ${PIP_ARGS} \
|
||||
$(cat /mod-pip-packages-to-install.list)
|
||||
fi
|
||||
|
||||
rm -rf \
|
||||
/mod-repo-packages-to-install.list \
|
||||
/mod-pip-packages-to-install.list
|
||||
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-package-install/run
|
||||
+6
-4
@@ -6,7 +6,8 @@ chown -R ${ABC_USER}:${ABC_USER} /config/logs
|
||||
|
||||
echo "**** installing docker and docker compose ****"
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get install -y \
|
||||
echo "**** Adding docker-in-docker dependency packages to install list ****"
|
||||
echo "\
|
||||
btrfs-progs \
|
||||
ca-certificates \
|
||||
curl \
|
||||
@@ -16,9 +17,10 @@ if [ -f /usr/bin/apt ]; then
|
||||
openssl \
|
||||
pigz \
|
||||
xfsprogs \
|
||||
xz-utils
|
||||
xz-utils" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
apk add --no-cache \
|
||||
echo "**** Adding docker-in-docker dependency packages to install list ****"
|
||||
echo "\
|
||||
btrfs-progs \
|
||||
curl \
|
||||
e2fsprogs \
|
||||
@@ -28,7 +30,7 @@ else
|
||||
openssl \
|
||||
pigz \
|
||||
xfsprogs \
|
||||
xz
|
||||
xz" >> /mod-repo-packages-to-install.list
|
||||
fi
|
||||
ARCH=$(uname -m)
|
||||
if [ -d "/docker-tgz" ] ; then
|
||||
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-universal-docker-in-docker-add-package/run
|
||||
@@ -1 +0,0 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-universal-docker-in-docker/run
|
||||
Regular → Executable
Reference in New Issue
Block a user