Skip to content

Commit

Permalink
Run dumb-init with --single-child
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Muru Paenga <[email protected]>
  • Loading branch information
meringu committed Oct 30, 2024
1 parent 95d55b6 commit e05c267
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/dumb-init /bin/sh
#!/bin/sh
set -e

# Modified: https://github.com/hashicorp/docker-consul/blob/2c2873f9d619220d1eef0bc46ec78443f55a10b5/0.X/docker-entrypoint.sh
Expand Down Expand Up @@ -54,4 +54,8 @@ else
echo "No files found in /docker-entrypoint.d/, skipping"
fi

exec "$@"
# Runs dumb-init in single child mode. By default dumb-init will forward
# interrupts to all child processes, causing Terraform to cancel and Terraform
# providers to exit uncleanly. We forward the signal to Atlantis only, allowing
# it to trap the interrupt, and exit gracefully.
exec /usr/bin/dumb-init --single-child "$@"

0 comments on commit e05c267

Please sign in to comment.