Skip to content

Commit

Permalink
fixes to app images
Browse files Browse the repository at this point in the history
  • Loading branch information
mguptahub committed Jun 26, 2024
1 parent c4f87e3 commit 2f036cd
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions aio/Dockerfile-app
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ RUN sed -i 's/PGHOST/POSTGRES_HOST/g' /app/plane.env && \
sed -i 's/plane-redis/localhost/g' /app/plane.env && \
sed -i 's/plane-minio/localhost/g' /app/plane.env

RUN set -o allexport && \
source /app/plane.env set && \
set +o allexport

COPY ./aio/nginx.conf /etc/nginx/nginx.conf.template

# if build type is full, run the below copy pg-setup.sh
Expand Down
6 changes: 6 additions & 0 deletions aio/aio.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash
set -e

set -o allexport
source plane.env set
set +o allexport

export REDIS_URL="redis://$REDIS_HOST:$REDIS_PORT"

if [ "$1" = 'api' ]; then
cd /app/api
exec ./bin/docker-entrypoint-api.sh
Expand Down
4 changes: 4 additions & 0 deletions aio/env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

set -o allexport
source /app/plane.env set
set +o allexport

export dollar="$"
export http_upgrade="http_upgrade"
export scheme="scheme"
Expand Down
2 changes: 1 addition & 1 deletion aio/pg-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ "$BUILD_TYPE" == "full" ]; then

# Variables
set -o allexport
source plane.env set
source /app/plane.env set
set +o allexport

export PGHOST=localhost
Expand Down
2 changes: 1 addition & 1 deletion aio/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ default_text_search_config = 'pg_catalog.english'
# default postgresql.conf. Note that these are directives, not variable
# assignments, so they can usefully be given more than once.

include_dir = 'conf.d' # include files ending in '.conf' from
# include_dir = 'conf.d' # include files ending in '.conf' from
# a directory, e.g., 'conf.d'
#include_if_exists = '...' # include file only if it exists
#include = '...' # include file
Expand Down
2 changes: 1 addition & 1 deletion aio/supervisord-full-base
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdout_logfile=/app/logs/access/redis.log

[program:postgresql]
user=postgres
command=/usr/lib/postgresql/15/bin/postgres --config-file=/etc/postgresql/15/main/postgresql.conf
command=/usr/lib/postgresql/15/bin/postgres --config-file=/etc/postgresql/postgresql.conf
autostart=true
autorestart=true
stderr_logfile=/app/logs/error/postgresql.err.log
Expand Down

0 comments on commit 2f036cd

Please sign in to comment.