mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
standardize apt-get, update formatting, add wheels
This commit is contained in:
parent
779a6d3cb7
commit
362de97bbf
@ -1,35 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Determine if setup is needed
|
||||
if ! command -v apprise; then
|
||||
## Ubuntu
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get update
|
||||
apt-get install --no-install-recommends -y \
|
||||
python3 \
|
||||
python3-pip \
|
||||
runc
|
||||
fi
|
||||
# Alpine
|
||||
if [ -f /sbin/apk ]; then
|
||||
apk add --no-cache \
|
||||
cargo \
|
||||
libffi-dev \
|
||||
openssl-dev \
|
||||
python3 \
|
||||
python3-dev \
|
||||
python3 \
|
||||
py3-pip
|
||||
fi
|
||||
|
||||
# setuptools
|
||||
python3 -m pip install --upgrade pip setuptools
|
||||
|
||||
# apprise
|
||||
python3 -m pip install --upgrade apprise
|
||||
|
||||
# cleanup cargo
|
||||
rm -rf \
|
||||
${HOME}/.cargo
|
||||
|
||||
fi
|
||||
5
root/etc/cont-init.d/95-apt-get
Normal file
5
root/etc/cont-init.d/95-apt-get
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get update
|
||||
fi
|
||||
35
root/etc/cont-init.d/96-apprise
Normal file
35
root/etc/cont-init.d/96-apprise
Normal file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Determine if setup is needed
|
||||
if ! command -v apprise; then
|
||||
## Ubuntu
|
||||
if [ -f /usr/bin/apt ]; then
|
||||
apt-get install --no-install-recommends -y \
|
||||
python3 \
|
||||
python3-pip \
|
||||
runc
|
||||
LINK_DISTRO="ubuntu"
|
||||
fi
|
||||
# Alpine
|
||||
if [ -f /sbin/apk ]; then
|
||||
apk add --no-cache \
|
||||
cargo \
|
||||
libffi-dev \
|
||||
openssl-dev \
|
||||
python3 \
|
||||
python3-dev \
|
||||
python3 \
|
||||
py3-pip
|
||||
LINK_DISTRO="alpine"
|
||||
fi
|
||||
|
||||
# setuptools
|
||||
python3 -m pip install --upgrade pip setuptools
|
||||
|
||||
# apprise
|
||||
python3 -m pip install --upgrade --find-links https://wheel-index.linuxserver.io/${LINK_DISTRO}/ apprise
|
||||
|
||||
# cleanup cargo
|
||||
rm -rf \
|
||||
${HOME}/.cargo
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user