Skip to content

Commit dc77751

Browse files
authored
fix: postgresql issue in try tooljet (#13626)
1 parent eddb8bd commit dc77751

2 files changed

Lines changed: 5 additions & 20 deletions

File tree

docker/ee/ee-try-tooljet-lts.Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@ FROM tooljet/tooljet:ee-lts-latest
33
# Copy postgrest executable
44
COPY --from=postgrest/postgrest:v12.2.0 /bin/postgrest /bin
55

6-
RUN wget http://snapshot.debian.org/archive/debian-security/2022-11-15T00:00:00Z/pool/updates/main/o/openssl1.1/libssl1.1_1.1.1n-0+deb11u4_amd64.deb && \
7-
wget http://ftp.debian.org/debian/pool/main/i/icu/libicu67_67.1-7_amd64.deb && \
8-
wget http://ftp.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.57+dfsg-3+deb11u1_amd64.deb && \
9-
dpkg -i libssl1.1_1.1.1n-0+deb11u4_amd64.deb libicu67_67.1-7_amd64.deb libldap-2.4-2_2.4.57+dfsg-3+deb11u1_amd64.deb && \
10-
rm libssl1.1_1.1.1n-0+deb11u4_amd64.deb libicu67_67.1-7_amd64.deb libldap-2.4-2_2.4.57+dfsg-3+deb11u1_amd64.deb
11-
6+
RUN apt-get update && apt-get install -y wget libicu72 libldap-2.5-0 libssl3 || true
127

138
# Install Postgres
149
USER root
1510
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
16-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
17-
RUN echo "deb http://deb.debian.org/debian"
11+
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
1812
RUN apt update && apt -y install postgresql-13 postgresql-client-13 supervisor
1913
USER postgres
2014
RUN service postgresql start && \
@@ -144,5 +138,5 @@ ENV TOOLJET_HOST=http://localhost \
144138

145139
# Set the entrypoint
146140
COPY ./docker/ee/ee-try-entrypoint-lts.sh /ee-try-entrypoint-lts.sh
147-
RUN chmod +x /ee-try-entrypoint-lts
141+
RUN chmod +x /ee-try-entrypoint-lts.sh
148142
ENTRYPOINT ["/ee-try-entrypoint-lts.sh"]

docker/ee/ee-try-tooljet.Dockerfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
FROM tooljet/tooljet:ee-latest
22

3-
# Copy postgrest executable
4-
COPY --from=postgrest/postgrest:v12.2.0 /bin/postgrest /bin
5-
6-
7-
RUN wget http://snapshot.debian.org/archive/debian-security/2022-11-15T00:00:00Z/pool/updates/main/o/openssl1.1/libssl1.1_1.1.1n-0+deb11u4_amd64.deb && \
8-
wget http://ftp.debian.org/debian/pool/main/i/icu/libicu67_67.1-7_amd64.deb && \
9-
wget http://ftp.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.57+dfsg-3+deb11u1_amd64.deb && \
10-
dpkg -i libssl1.1_1.1.1n-0+deb11u4_amd64.deb libicu67_67.1-7_amd64.deb libldap-2.4-2_2.4.57+dfsg-3+deb11u1_amd64.deb && \
11-
rm libssl1.1_1.1.1n-0+deb11u4_amd64.deb libicu67_67.1-7_amd64.deb libldap-2.4-2_2.4.57+dfsg-3+deb11u1_amd64.deb
3+
RUN apt-get update && apt-get install -y wget libicu72 libldap-2.5-0 libssl3 || true
124

135
# Install Postgres
146
USER root
157
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
16-
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
17-
RUN echo "deb http://deb.debian.org/debian"
8+
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
189
RUN apt update && apt -y install postgresql-13 postgresql-client-13 supervisor
1910
USER postgres
2011
RUN service postgresql start && \

0 commit comments

Comments
 (0)