File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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",
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ RUN apt update && apt -y install postgresql-13 postgresql-client-13 supervisor
8383RUN 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
8787RUN mkdir -p /var/lib/postgresql/13/main && \
8888 chown -R postgres:postgres /var/lib/postgresql
8989
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ WORKDIR /app
99ARG CUSTOM_GITHUB_TOKEN
1010ARG BRANCH_NAME
1111
12- # Clone and checkout the frontend repository
12+ # Clone and checkout the frontend repositorys
1313RUN git config --global url."https://x-access-token:${CUSTOM_GITHUB_TOKEN}@github.com/" .insteadOf "https://github.com/"
1414
1515RUN 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
109109RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
110110RUN 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
113121RUN rm -rf /var/lib/postgresql/13/main && \
114122 mkdir -p /var/lib/postgresql/13/main && \
You can’t perform that action at this time.
0 commit comments