Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy/docker/base.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ RUN set -o xtrace \
&& ln -s /usr/lib/postgresql/13 /usr/lib/postgresql/current \
&& apt-get clean

ENV PATH="/usr/lib/postgresql/13/bin:${PATH}"

# Install Java
RUN set -o xtrace \
&& mkdir -p /opt/java \
Expand Down
5 changes: 4 additions & 1 deletion deploy/docker/fs/opt/appsmith/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

tlog "Running as: $(id)"

# Temporary, remove after this change goes into `base.dockerfile`.
export PATH="/usr/lib/postgresql/13/bin:${PATH}"

stacks_path=/appsmith-stacks

export SUPERVISORD_CONF_TARGET="$TMP/supervisor-conf.d/" # export for use in supervisord.conf
Expand Down Expand Up @@ -427,7 +430,7 @@ init_postgres() {

if [[ ! -e "$POSTGRES_DB_PATH/PG_VERSION" ]]; then
tlog "Initializing local Postgres data folder"
su postgres -c "/usr/lib/postgresql/13/bin/initdb -D $POSTGRES_DB_PATH"
su postgres -c "initdb -D $POSTGRES_DB_PATH"
fi
else
runEmbeddedPostgres=0
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/fs/opt/appsmith/run-postgres.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

rm -f /appsmith-stacks/data/postgres/main/core.*
exec /usr/lib/postgresql/13/bin/postgres -D "/appsmith-stacks/data/postgres/main" -c listen_addresses=127.0.0.1
exec postgres -D "/appsmith-stacks/data/postgres/main" -c listen_addresses=127.0.0.1