photoprism/scripts/dist/Makefile
Michael Mayer 89bbba06ce Docker: Add "darktable" upgrade option for PHOTOPRISM_INIT #3741
Please note that this is a temporary solution that will only work with
Ubuntu 23.04 base images.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-10-14 14:04:38 +02:00

53 lines
2.1 KiB
Makefile
Executable file

# INSTALLS OPTIONAL PACKAGES AND DRIVERS IN DOCKER IMAGES
export PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/scripts"
apt-upgrade: update
update:
apt-get update
apt-get -qq dist-upgrade
apt-cleanup: clean
clean:
apt-get -y autoremove
apt-get -y autoclean
rm -rf /var/lib/apt/lists/*
https: install-https
install-https:
@/scripts/install-https.sh
mariadb: mariadb-client
mariadb-client: install-mariadb-client
install-mariadb-client:
/scripts/install-mariadb.sh mariadb-client
gpu: install-gpu
install-gpu:
/scripts/install-gpu.sh
tensorflow: install-tensorflow
tensorflow-amd64-cpu: install-tensorflow
tensorflow-amd64-avx: install-tensorflow
tensorflow-amd64-avx2: install-tensorflow
install-tensorflow:
/scripts/install-tensorflow.sh auto
davfs: install-davfs
install-davfs:
/scripts/install-davfs.sh
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
nano: clitools
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"
darktable:
echo 'deb http://download.opensuse.org/repositories/graphics:/darktable/xUbuntu_23.04/ /' | sudo tee /etc/apt/sources.list.d/graphics:darktable.list
curl -fsSL https://download.opensuse.org/repositories/graphics:darktable/xUbuntu_23.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/graphics_darktable.gpg > /dev/null
sudo apt-get update
sudo apt-get install darktable
sudo apt-get autoremove
# Declare all targets as "PHONY", see https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html.
MAKEFLAGS += --always-make