-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathapt-install
executable file
·60 lines (50 loc) · 1.58 KB
/
apt-install
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
#!/bin/sh
# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e -x
CI_DATABASE="$1"
mkdir -p /run/user/1000
chown -R 1000:1000 /run/user/1000
# Add PostgreSQL repo
install -d /usr/share/postgresql-common/pgdg
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
# Update package lists
apt-get update
# Remove non-installable git packages. There git-svn can not be installed
# because the image contains newer versions which do not have matching git-svn
# in enabled repositories.
apt-get purge git git-man
# Install dependencies
apt-get install -y \
gettext \
git \
git-svn \
gnupg \
subversion \
postgresql-client-17 \
pkg-config \
libxml2-dev \
libacl1-dev \
liblz4-dev \
libzstd-dev \
libxxhash-dev \
libxmlsec1-dev \
libsasl2-dev \
libldap2-dev \
libssl-dev \
libffi-dev \
libgirepository1.0-dev \
libcairo-dev \
liblz4-dev \
gir1.2-rsvg-2.0 \
gir1.2-pango-1.0
# TODO: remove this once Python 3.13 wheels are available, see
# https://github.com/sirfz/tesserocr/pull/357
apt-get install -y libleptonica-dev libtesseract-dev
# Remove MySQL 8.x client, use older MariaDB one to ensure compatibility
if [ "$CI_DATABASE" = "mariadb" ]; then
apt-get purge 'mysql-client.*'
apt-get install -y mariadb-client
fi