...
1#!/bin/bash
2# For the boulder container, we want to run entrypoint.sh and start.py by
3# default (when no command is passed on a "docker compose run" command line).
4# However, we want the netaccess container to run nothing by default.
5# Otherwise it would race with boulder container's entrypoint.sh to run
6# migrations, and one or the other would fail randomly. Also, it would compete
7# with the boulder container for ports. This is a variant of entrypoint.sh that
8# exits if it is not given an argument.
9if [[ "$@" = "" ]]; then
10 echo "Not needed as part of 'docker compose up'. Exiting normally."
11 exit 0
12fi
13"$@"
View as plain text