Skip to content
Closed
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
7 changes: 4 additions & 3 deletions build/docker/server/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ if [ ! -f $DIST_FILE ]; then
echo "Copying grafana plugins and the VERSION file..."
mkdir -p /srv/grafana/plugins
cp -r /usr/share/percona-dashboards/panels/* /srv/grafana/plugins

cp /usr/share/percona-dashboards/VERSION /srv/grafana/PERCONA_DASHBOARDS_VERSION

echo "Generating self-signed certificates for nginx..."
bash /var/lib/cloud/scripts/per-boot/generate-ssl-certificate

echo "Initializing Postgres..."
/usr/pgsql-14/bin/initdb -D /srv/postgres14 --auth=trust --username=postgres

echo "Enabling pg_stat_statements extension for PostgreSQL..."
/usr/pgsql-14/bin/pg_ctl start -D /srv/postgres14 -o '-c logging_collector=off'
/usr/bin/psql postgres postgres -c 'CREATE EXTENSION pg_stat_statements SCHEMA public'
Expand Down
Loading