Public source validation / validate (push) Failing after 3m8s
19 lines
773 B
Bash
19 lines
773 B
Bash
#!/bin/sh
|
|
# Minimal entrypoint wrapper used by pulse-worker and pulse-agent images.
|
|
#
|
|
# It records the container's process start time (as seen from inside the
|
|
# container) before exec'ing the real binary, so
|
|
# deploy/healthcheck-heartbeat.sh can grant a startup grace period without
|
|
# depending on Docker's HEALTHCHECK `start_period` semantics, which only
|
|
# suppress unhealthy *status* transitions and do not stop the HEALTHCHECK
|
|
# CMD (including its self-restart action) from running during that window.
|
|
#
|
|
# Contract: this script does not replace or delay the real entrypoint. It
|
|
# performs one tmpfs write and then immediately execs the given command,
|
|
# replacing this shell process (PID 1 stays the real Go binary).
|
|
set -eu
|
|
|
|
date +%s > /tmp/.pulse-started-at
|
|
|
|
exec "$@"
|