github.com/letsencrypt/boulder@v0.20251208.0/test/entrypoint.sh (about) 1 #!/usr/bin/env bash 2 3 set -e -u 4 5 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 6 7 # Start rsyslog. Note: Sometimes for unknown reasons /var/run/rsyslogd.pid is 8 # already present, which prevents the whole container from starting. We remove 9 # it just in case it's there. 10 rm -f /var/run/rsyslogd.pid 11 rsyslogd 12 13 # make sure we can reach mariadb and proxysql 14 ./test/wait-for-it.sh boulder-mariadb 3306 15 ./test/wait-for-it.sh boulder-proxysql 6033 16 17 # make sure we can reach vitess 18 ./test/wait-for-it.sh boulder-vitess 33577 19 20 # make sure we can reach pkilint 21 ./test/wait-for-it.sh bpkimetal 8080 22 23 # create the databases 24 MYSQL_CONTAINER=1 \ 25 DB_HOST="boulder-mariadb" \ 26 DB_PORT=3306 \ 27 DB_CONFIG_FILE="${DIR}/../sa/db/dbconfig.mariadb.yml" \ 28 SKIP_CREATE=0 \ 29 SKIP_USERS=0 \ 30 "$DIR/create_db.sh" 31 32 MYSQL_CONTAINER=1 \ 33 DB_HOST="boulder-vitess" \ 34 DB_PORT=33577 \ 35 DB_CONFIG_FILE="${DIR}/../sa/db/dbconfig.mysql8.yml" \ 36 SKIP_CREATE=1 \ 37 SKIP_USERS=1 \ 38 "$DIR/create_db.sh" 39 40 if [[ $# -eq 0 ]]; then 41 exec python3 ./start.py 42 fi 43 44 exec "$@"