Skip to content

Commit

Permalink
Updated the 'appdev' container to start SSHD prior
Browse files Browse the repository at this point in the history
to starting PG (if enabled), and also moved the
PostgreSQL Exporter congiuration files into a
sub-directory within the '/opt/cpm/bin/modules'
directory.
  • Loading branch information
andrewlecuyer authored and jkatz committed Oct 9, 2019
1 parent 9f90b08 commit 270f218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/postgres-appdev/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ then
source /pgconf/pre-start-hook.sh
fi

# Start SSHD if necessary prior to starting PG
source /opt/cpm/bin/sshd.sh

echo_info "Starting PostgreSQL.."
postgres -D $PGDATA &

Expand Down
2 changes: 1 addition & 1 deletion centos7/11/Dockerfile.postgres-appdev.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ADD bin/postgres-appdev /opt/cpm/bin
ADD conf/postgres /opt/cpm/conf
####### TODO If we put in PGAdmin need to put the conf here as well

ADD tools/pgmonitor/exporter/postgres /opt/cpm/bin/modules
ADD tools/pgmonitor/exporter/postgres /opt/cpm/bin/modules/pgexporter

RUN chmod g=u /etc/passwd && \
chmod g=u /etc/group
Expand Down

0 comments on commit 270f218

Please sign in to comment.