Skip to content

Commit 6d7733c

Browse files
authored
testing EE PR preview app (#12851)
* testing PR app on render preview * fix volume issue on ee pr app * fix postgresql.conf issue * fix postgresql.conf issue * fix postgresql.conf issue (#12856)
1 parent 4e87ab1 commit 6d7733c

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/render-preview-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ jobs:
542542
"serviceDetails": {
543543
"disk": {
544544
"name": "tooljet-ee-pr-${{ env.PR_NUMBER }}-postgresql",
545-
"mountPath": "/data",
545+
"mountPath": "/var/lib/postgresql/13/main",
546546
"sizeGB": 10
547547
},
548548
"env": "docker",

docker/ce-preview.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ RUN apt update && apt -y install postgresql-13 postgresql-client-13 supervisor
8383
RUN mkdir -p /var/log/supervisor /var/run/postgresql && \
8484
chown -R postgres:postgres /var/run/postgresql /var/log/supervisor
8585

86-
# Explicitly create PG main directory with correct ownership
86+
# Explicitly create PG main directory with correct ownerships
8787
RUN mkdir -p /var/lib/postgresql/13/main && \
8888
chown -R postgres:postgres /var/lib/postgresql
8989

docker/ee/ee-preview.Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /app
99
ARG CUSTOM_GITHUB_TOKEN
1010
ARG BRANCH_NAME
1111

12-
# Clone and checkout the frontend repository
12+
# Clone and checkout the frontend repositorys
1313
RUN git config --global url."https://x-access-token:${CUSTOM_GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
1414

1515
RUN git config --global http.version HTTP/1.1
@@ -109,6 +109,14 @@ RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-k
109109
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
110110
RUN apt update && apt -y install postgresql-13 postgresql-client-13 supervisor --fix-missing
111111

112+
113+
# Explicitly create PG main directory with correct ownership
114+
RUN mkdir -p /var/lib/postgresql/13/main && \
115+
chown -R postgres:postgres /var/lib/postgresql
116+
117+
RUN mkdir -p /var/log/supervisor /var/run/postgresql && \
118+
chown -R postgres:postgres /var/run/postgresql /var/log/supervisor
119+
112120
# Remove existing data and create directory with proper ownership
113121
RUN rm -rf /var/lib/postgresql/13/main && \
114122
mkdir -p /var/lib/postgresql/13/main && \

0 commit comments

Comments
 (0)