Skip to content

Commit

Permalink
updating install
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletaylored committed Jun 24, 2024
1 parent e42db4f commit 1bb3c99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose.datadog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
volumes:
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
- /opt/datadog/apm:/opt/datadog/apm:rw
- /opt/datadog:/opt/datadog:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
cap_add:
Expand Down
13 changes: 7 additions & 6 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ name: datadog
pre_install_actions:
- |
#ddev-description:Install agent configuration on host
ddev exec --raw -- DD_APPSEC_ENABLED=true DD_IAST_ENABLED=true DD_APPSEC_SCA_ENABLED=true bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_docker_injection.sh)"
- |
#ddev-description:Installing PHP agent
curl -LO https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php
php datadog-setup.php --php-bin=all --enable-appsec --enable-profiling
ddev exec curl -sSL https://s3.amazonaws.com/dd-agent/scripts/install_script_docker_injection.sh -o install_script.sh
ddev exec DD_APPSEC_ENABLED=true DD_IAST_ENABLED=true DD_APPSEC_SCA_ENABLED=true bash install_script.sh
# exit 1
# - |
# #ddev-nodisplay
Expand Down Expand Up @@ -86,6 +83,10 @@ dependencies:
# DDEV environment variables can be interpolated into these actions
post_install_actions:
- chmod +x ~/.ddev/commands/datadog/datadog
- |
#ddev-description:Installing PHP agent
ddev exec -s datadog curl -LO https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php
ddev exec -s datadog php datadog-setup.php --php-bin=all --enable-appsec --enable-profiling
# - touch somefile.${GOOS}.${DDEV_WEBSERVER}
# - perl -pi -e 's/oldstring/newstring/g' docker-compose.addon-template.yaml

Expand Down

0 comments on commit 1bb3c99

Please sign in to comment.