pandora/docker/base/install.sh

75 lines
1.8 KiB
Bash
Raw Permalink Normal View History

2019-07-06 16:12:32 +00:00
#!/bin/bash
if [ -e /etc/os-release ]; then
. /etc/os-release
fi
2023-06-07 20:26:52 +00:00
if [ -z "$UBUNTU_CODENAME" ]; then
UBUNTU_CODENAME=bionic
fi
if [ "$VERSION_CODENAME" = "bullseye" ]; then
UBUNTU_CODENAME=focal
fi
2023-06-07 22:41:08 +00:00
if [ "$VERSION_CODENAME" = "bookworm" ]; then
UBUNTU_CODENAME=lunar
fi
2019-07-06 16:12:32 +00:00
export DEBIAN_FRONTEND=noninteractive
echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/99languages
apt-get update -qq
echo "deb http://ppa.launchpad.net/j/pandora/ubuntu ${UBUNTU_CODENAME} main" > /etc/apt/sources.list.d/j-pandora.list
apt-get install -y gnupg2
apt-key add - <<EOF
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mI0ESXYhEgEEALl9jDTdmgpApPbjN+7b85dC92HisPUp56ifEkKJOBj0X5HhRqxs
Wjx/zlP4/XJGrHnxJyrdPxjSwAXz7bNdeggkN4JWdusTkr5GOXvggQnng0X7f/rX
oJwoEGtYOCODLPs6PC0qjh5yPzJVeiRsKUOZ7YVNnwNwdfS4D8RZvtCrABEBAAG0
FExhdW5jaHBhZCBQUEEgZm9yIGpeiLYEEwECACAFAkl2IRICGwMGCwkIBwMCBBUC
CAMEFgIDAQIeAQIXgAAKCRAohRM8AZde82FfA/9OB/64/YLaCpizHZ8f6DK3rGgF
e6mX3rFK8yOKGGL06316VhDzfzMiZSauUZ0t+lKHR/KZYeSaFwEoUoblTG/s4IIo
9aBMHWhVXJW6eifKUmTGqEn2/0UxoWQq2C3F6njMkCaP+ALOD5uzaSYGdjqAUAwS
pAAGSEQ4uz6bYSeM4Q==
=SM2a
-----END PGP PUBLIC KEY BLOCK-----
EOF
apt-get update -qq
apt-get install -y \
netcat-openbsd \
sudo \
2020-09-27 15:53:37 +00:00
rsync \
2020-09-27 11:03:45 +00:00
iproute2 \
2019-07-06 16:12:32 +00:00
vim \
wget \
pwgen \
git \
python3-setuptools \
python3-pip \
python3-venv \
python3-dev \
python3-pil \
python3-numpy \
python3-psycopg2 \
python3-pyinotify \
python3-lxml \
python3-cssselect \
python3-html5lib \
python3-ox \
2020-09-27 11:03:45 +00:00
python3-elasticsearch \
2019-07-06 16:12:32 +00:00
oxframe \
ffmpeg \
mkvtoolnix \
imagemagick \
poppler-utils \
ipython3 \
2020-09-27 11:03:45 +00:00
tesseract-ocr \
tesseract-ocr-eng \
2019-07-06 16:12:32 +00:00
postfix \
postgresql-client
2020-09-27 11:03:45 +00:00
apt-get install -y --no-install-recommends youtube-dl rtmpdump
2019-07-06 16:12:32 +00:00
apt-get clean
rm -f /install.sh