mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 10:12:32 -05:00
18 lines
722 B
Bash
Executable File
18 lines
722 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
###################################################################
|
|
# This script will get executed *once* the Docker container has
|
|
# been built. Commands that need to be executed with all available
|
|
# tools and the filesystem mount enabled should be located here.
|
|
#
|
|
# The PostgreSQL Docker image has an extension mechanism that does
|
|
# not necessitate to override the entrypoint or main command. One
|
|
# simply has to copy a shell script into the
|
|
# /docker-entrypoint-initdb.d/ initialization folder.
|
|
###################################################################
|
|
|
|
# Notify database setup.
|
|
createdb --user=postgres notification_api
|
|
|
|
wall "The db container entrypoint setup is complete!" |