Files
nomad/scripts/docker-entrypoint.sh
KeisukeYamashita 1b872c422c build: fix broken link to nomad in docker (#22191)
Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com>
2024-05-22 12:02:25 +02:00

21 lines
975 B
Bash
Executable File

#!/usr/bin/env ash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
case "$1" in
"agent" )
if [[ -z "${NOMAD_SKIP_DOCKER_IMAGE_WARN}" ]]
then
echo "======================================================================================================================================="
echo "!! Running Nomad clients inside Docker containers is not supported. !!"
echo "!! Refer to https://developer.hashicorp.com/nomad/docs/install/production/requirements#running-nomad-in-docker for more information. !!"
echo "!! Set the NOMAD_SKIP_DOCKER_IMAGE_WARN environment variable to skip this warning. !!"
echo "======================================================================================================================================="
echo ""
sleep 2
fi
esac
exec nomad "$@"