8000 Docker file for AltLinux 10 is updated · postgrespro/testgres@55c70c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55c70c5

Browse files
Docker file for AltLinux 10 is updated
We manually compile and "install" PG: - create a symlink /usr/local/bin/pg_config - create a symlink /usr/lib64/libpq.so.5 Manual bild fixes the following problem: psycopg2.errors.ProtocolViolation: could not create replication slot "mysub": ERROR: could not access file "pgoutput": No such file or directory Failed tests: - TestTestgresCommon::test_logical_replication[remote_ops] - TestTestgresCommon::test_logical_catchup[local_ops] - TestTestgresCommon::test_logical_replication[local_ops] - TestTestgresCommon::test_logical_catchup[remote_ops]
1 parent 7afeb1a commit 55c70c5

File tree

1 file changed

+43
-7
lines changed

1 file changed

+43
-7
lines changed

Dockerfile--altlinux_10.tmpl

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,55 @@ RUN apt-get install -y time
1313

1414
RUN apt-get install -y mc
1515

16-
RUN apt-get update
17-
RUN apt-get install -y postgresql-common
18-
RUN apt-get install -y postgresql${PG_VERSION}-server
19-
RUN apt-get install -y postgresql${PG_VERSION}-server-devel
20-
2116
RUN apt-get install -y libsqlite3-devel
2217

2318
EXPOSE 22
2419

2520
RUN ssh-keygen -A
2621

22+
# --------------------------------------------- postgres
23+
FROM base1 as base1_with_dev_tools
24+
25+
RUN apt-get update
26+
27+
RUN apt-get install -y git
28+
RUN apt-get install -y gcc
29+
RUN apt-get install -y make
30+
31+
RUN apt-get install -y meson
32+
RUN apt-get install -y flex
33+
RUN apt-get install -y bison
34+
35+
RUN apt-get install -y pkg-config
36+
RUN apt-get install -y libssl-devel
37+
RUN apt-get install -y libicu-devel
38+
RUN apt-get install -y libzstd-devel
39+
RUN apt-get install -y zlib-devel
40+
RUN apt-get install -y liblz4-devel
41+
RUN apt-get install -y libzstd-devel
42+
RUN apt-get install -y libxml2-devel
43+
44+
# --------------------------------------------- postgres
45+
FROM base1_with_dev_tools as base1_with_pg-17
46+
47+
RUN git clone https://github.com/postgres/postgres.git -b REL_17_STABLE /pg/postgres/source
48+
49+
WORKDIR /pg/postgres/source
50+
51+
RUN ./configure --prefix=/pg/postgres/install --with-zlib --with-openssl --without-readline --with-lz4 --with-zstd --with-libxml
52+
RUN make -j 4 install
53+
RUN make -j 4 -C contrib install
54+
55+
# SETUP PG_CONFIG
56+
# When pg_config symlink in /usr/local/bin it returns a real (right) result of --bindir
57+
RUN ln -s /pg/postgres/install/bin/pg_config -t /usr/local/bin
58+
59+
# SETUP PG CLIENT LIBRARY
60+
# libpq.so.5 is enough
61+
RUN ln -s /pg/postgres/install/lib/libpq.so.5.17 /usr/lib64/libpq.so.5
62+
2763
# --------------------------------------------- base2_with_python-3
28-
FROM base1 as base2_with_python-3
64+
FROM base1_with_pg-${PG_VERSION} as base2_with_python-3
2965
RUN apt-get install -y python3
3066
RUN apt-get install -y python3-dev
3167
RUN apt-get install -y python3-module-virtualenv
@@ -42,7 +78,7 @@ RUN sh -c "echo \"WHEEL_USERS ALL=(ALL:ALL) NOPASSWD: ALL\"" >> /etc/sudoers
4278

4379
ADD . /pg/testgres
4480
WORKDIR /pg/testgres
45-
RUN chown -R test /pg
81+
RUN chown -R test /pg/testgres
4682

4783
ENV LANG=C.UTF-8
4884

3199

0 commit comments

Comments
 (0)
0