Skip to content

Commit

Permalink
Move to docker compose instead of docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-alvarez-alvarez committed May 8, 2024
1 parent 62cd2c5 commit 0cc74f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ wait_for() {

run_web_goat() {
print "INFO" "WebGoat: Starting application"
docker-compose up -d datadog-agent webgoat
docker compose up -d datadog-agent webgoat
wait_for "WebGoat" "http://localhost:8080/WebGoat"
print "INFO" "WebGoat: Logs are available at http://localhost:8181/webgoat/"
print "INFO" "WebGoat: Start navigating the application and watch for vulnerabilities at Datadog"
}

run_benchmark() {
print "INFO" "Benchmark: Starting application"
docker-compose up -d datadog-agent benchmark
docker compose up -d datadog-agent benchmark
wait_for "Benchmark" "http://localhost:8181/scorecard/"
print "INFO" "Benchmark: Logs are available at http://localhost:8181/benchmark/"
print "INFO" "Benchmark: Scorecards are available at http://localhost:8181/scorecard/"
Expand All @@ -43,7 +43,7 @@ run_benchmark() {

run_insecure_bank() {
print "INFO" "Insecure Bank: Starting application"
docker-compose up -d datadog-agent insecure-bank
docker compose up -d datadog-agent insecure-bank
wait_for "Insecure Bank" "http://localhost:8080"
print "INFO" "Insecure Bank: Logs are available at http://localhost:8181/insecure-bank/"
print "INFO" "Insecure Bank: Start navigating the application and watch for vulnerabilities at Datadog"
Expand All @@ -68,15 +68,15 @@ start() {
}

stop() {
docker-compose down
docker compose down
}

logs() {
docker-compose logs -f
docker compose logs -f
}

command -v docker-compose >/dev/null 2>&1 || {
print "ERROR" "Please install docker-compose before running the samples.";
command -v docker >/dev/null 2>&1 || {
print "ERROR" "Please install 'docker' before running the samples.";
exit 1
}

Expand Down

0 comments on commit 0cc74f2

Please sign in to comment.