You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-12-24 00:01:31 +02:00
Finish inital schema migration script
This commit is contained in:
16
example-project/docker/datadog-agent/Dockerfile
Normal file
16
example-project/docker/datadog-agent/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM datadog/agent:latest
|
||||
|
||||
LABEL maintainer="lee@geeksinthewoods.com"
|
||||
|
||||
#COPY target/go_expvar.conf.yaml /etc/datadog-agent/conf.d/go_expvar.d/conf.yaml
|
||||
COPY target/custom-init.sh /custom-init.sh
|
||||
|
||||
ARG service
|
||||
ENV SERVICE_NAME $service
|
||||
|
||||
ARG env="dev"
|
||||
ENV ENV $env
|
||||
|
||||
ENV DD_TAGS="source:docker service:${service} service_name:${service} cluster:NA env:${ENV}"
|
||||
|
||||
CMD ["/custom-init.sh"]
|
||||
16
example-project/docker/datadog-agent/custom-init.sh
Executable file
16
example-project/docker/datadog-agent/custom-init.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
configFile="/etc/datadog-agent/conf.d/go_expvar.d/conf.yaml"
|
||||
|
||||
echo -e "init_config:\n\ninstances:\n - expvar_url: http://localhost:80/debug/vars" > $configFile
|
||||
|
||||
if [[ "${DD_TAGS}" != "" ]]; then
|
||||
echo " tags:" >> $configFile
|
||||
for t in ${DD_TAGS}; do
|
||||
echo " - \"${t}\"" >> $configFile
|
||||
done
|
||||
fi
|
||||
|
||||
cat $configFile
|
||||
|
||||
/init
|
||||
Reference in New Issue
Block a user