https://docs.datadoghq.com/synthetics/private_locations/?tab=docker
The datadog/synthetics-private-location-worker
Docker image doesn't allow to set check runner's JSON config using environment variables, but only by mounting a JSON config file as a Docker volume.
This custom image uses an entrypoint script that allows you to set the check runner's JSON config by passing it as an environment variable (SYNTHETICS_CHECK_RUNNER_CONFIG_JSON
).
Private location worker usage/config options remain unchanged.
$ docker build -t custom-synthetics-image .
$ docker run --rm -it -e SYNTHETICS_CHECK_RUNNER_CONFIG_JSON="__JSON_CONFIG__" custom-synthetics-image --help