Remove init containers
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
14
packages/docker/prometheus/entrypoint.sh
Normal file
14
packages/docker/prometheus/entrypoint.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
if [ -d /etc/prometheus/conf.d ]; then
|
||||
# shellcheck disable=SC2016
|
||||
yq eval-all '. as $item ireduce ({}; . *+ $item)' /etc/prometheus/conf.d/*.yaml > /etc/prometheus/prometheus.yaml
|
||||
fi
|
||||
|
||||
exec prometheus \
|
||||
--config.file=/etc/prometheus/prometheus.yaml \
|
||||
--storage.tsdb.path=/var/lib/prometheus \
|
||||
"$@"
|
Reference in New Issue
Block a user