-
Notifications
You must be signed in to change notification settings - Fork 9
/
dep-common.sh
executable file
·88 lines (79 loc) · 2.36 KB
/
dep-common.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
set -xeuo pipefail # Make my life easier
# Because I removed one package
# apt --fix-broken -y install
# if [ -d "/tmp/immich-preinstall" ]; then
# rm -r /tmp/immich-preinstall
# fi
# Install runtime component
## Redis
apt install --no-install-recommends -y\
redis
# Install build dependency
## Tools
apt install --no-install-recommends -y\
curl git python3-venv python3-dev unzip
## From immich/base-image
apt install --no-install-recommends -y\
autoconf \
build-essential \
cmake \
jq \
libbrotli-dev \
libde265-dev \
libexif-dev \
libexpat1-dev \
libglib2.0-dev \
libgsf-1-dev \
liblcms2-2 \
librsvg2-dev \
libspng-dev \
meson \
ninja-build \
pkg-config \
wget \
zlib1g \
cpanminus
## Learned from compile failure
apt install -y libgdk-pixbuf-2.0-dev librsvg2-dev libtool
## From libjxl guide
apt install -y --no-install-recommends libgif-dev libjpeg-dev libopenexr-dev libpng-dev libwebp-dev
# Install runtime dependency
apt install --no-install-recommends -y\
ca-certificates \
jq \
libde265-0 \
libexif12 \
libexpat1 \
libgcc-s1 \
libglib2.0-0 \
libgomp1 \
libgsf-1-114 \
liblcms2-2 \
liblqr-1-0 \
libltdl7 \
libmimalloc2.0 \
libopenexr-3-1-30 \
libopenjp2-7 \
librsvg2-2 \
libspng0 \
mesa-utils \
mesa-va-drivers \
mesa-vulkan-drivers \
tini \
wget \
zlib1g \
ocl-icd-libopencl1
# Install Intel things
# Skip it
# if [ ! -d ".intel-things-success-0" ]; then
# mkdir /tmp/immich-preinstall
# cd /tmp/immich-preinstall
# wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17384.11/intel-igc-core_1.0.17384.11_amd64.deb
# wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17384.11/intel-igc-opencl_1.0.17384.11_amd64.deb
# wget https://github.com/intel/compute-runtime/releases/download/24.31.30508.7/intel-opencl-icd_24.31.30508.7_amd64.deb
# wget https://github.com/intel/compute-runtime/releases/download/24.31.30508.7/libigdgmm12_22.4.1_amd64.deb
# dpkg -i *.deb
# touch .intel-things-success-0
# rm -r /tmp/immich-preinstall
# fi