2021-10-21 15:18:35 +02:00
# INSTALLS OPTIONAL PACKAGES AND DRIVERS IN DOCKER IMAGES
2021-12-12 20:14:07 +01:00
# Maintainer: Michael Mayer <hello@photoprism.app>
2021-10-21 15:18:35 +02:00
2022-03-23 08:33:44 +01:00
export PATH = "/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
2022-03-23 08:16:01 +01:00
2022-02-25 16:33:46 +01:00
apt-upgrade : update
update :
2022-11-17 08:54:09 +01:00
apt-get update
apt-get -qq dist-upgrade
apt-cleanup : clean
2022-02-25 16:33:46 +01:00
clean :
2022-11-17 08:54:09 +01:00
apt-get -y autoremove
apt-get -y autoclean
rm -rf /var/lib/apt/lists/*
https : install -https
install-https :
2022-10-20 16:19:28 +02:00
/scripts/install-https.sh
2022-11-17 08:54:09 +01:00
mariadb : mariadb -client
mariadb-client : install -mariadb -client
install-mariadb-client :
/scripts/install-mariadb.sh mariadb-client
gpu : install -gpu
install-gpu :
2022-03-11 09:50:24 +01:00
/scripts/install-gpu.sh
2022-11-17 08:54:09 +01:00
tensorflow : install -tensorflow
tensorflow-amd64-cpu : install -tensorflow
tensorflow-amd64-avx : install -tensorflow
tensorflow-amd64-avx2 : install -tensorflow
install-tensorflow :
2022-03-11 09:50:24 +01:00
/scripts/install-tensorflow.sh auto
2022-11-17 08:54:09 +01:00
davfs : install -davfs
install-davfs :
2022-03-11 09:50:24 +01:00
/scripts/install-davfs.sh
2022-11-17 08:54:09 +01:00
intel : update install -intel
install-intel-graphics : intel
intel-graphics : intel
install-intel :
@echo "Installing Intel Drivers..."
apt-get -qq install intel-opencl-icd intel-media-va-driver-non-free i965-va-driver-shaders mesa-va-drivers libmfx-gen-dev va-driver-all vainfo libva-dev
clitools : update install -clitools
cli-tools : clitools
2022-03-18 11:07:19 +01:00
nano : clitools
2022-11-17 08:54:09 +01:00
install-clitools :
@apt-get -qq install zsh nano >/dev/null 2>& 1 && echo "init: successfully installed zsh and nano" || echo "init: packages zsh and nano not available for installation"
@apt-get -qq install exa duf >/dev/null 2>& 1 && echo "init: successfully installed exa and duf" || echo "init: packages exa and duf not available for installation"
.PHONY : update apt -upgrade clean apt -cleanup tensorflow install -tensorflow \
tensorflow-amd64-cpu tensorflow-amd64-avx tensorflow-amd64-avx2 \
intel install-intel intel-graphics install-intel-graphics \
davfs install-davfs nano clitools install-clitools \
mariadb-client install-mariadb-client https install-https gpu install-gpu;