Skip to content

Commit

Permalink
Docker image: Don't reload when calling "test" command
Browse files Browse the repository at this point in the history
When we changed --test to automatically reload, we forgot to explicitly
avoid that in the case of the Docker image. In the Docker situation we
would typically find two separate containers during a test, the one used
for the test, and the regular container running in the background. Thus,
the test won't be able to reload the PID that's running in a separate
container / cgroups namespace.
  • Loading branch information
lfittl committed Jan 6, 2024
1 parent b8c196d commit 4464966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ $(id -u) = 0 ]; then
fi

if [ "$1" = 'test' ]; then
eval $CMD_PREFIX /home/pganalyze/collector --test --no-log-timestamps
eval $CMD_PREFIX /home/pganalyze/collector --test --no-log-timestamps --no-reload
fi

if [ "$1" = 'test-explain' ]; then
Expand Down

0 comments on commit 4464966

Please sign in to comment.