From b134578d6880261d564a80ef1b18e39ea240a56c Mon Sep 17 00:00:00 2001 From: Sarah Chen Date: Mon, 23 Sep 2024 13:26:23 -0400 Subject: [PATCH] Replace direct catadog usage with catadog Docker image --- .github/workflows/vaccine.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/vaccine.yml b/.github/workflows/vaccine.yml index 3926b5f..ff2eb15 100644 --- a/.github/workflows/vaccine.yml +++ b/.github/workflows/vaccine.yml @@ -57,18 +57,16 @@ jobs: - uses: ruby/setup-ruby@v1 with: ruby-version: .ruby-version - - run: bundle install + - run: bundle install # Prepare mock server 'catadog', https://github.com/DataDog/catadog - - uses: actions/checkout@v4 - with: - repository: datadog/catadog - ref: tonycthsu/daemon - path: catadog - run: mkdir $GITHUB_WORKSPACE/records - - run: | - cd catadog - bundle install - bundle exec catadog -h 0.0.0.0 --mock :Sink --no-forward --daemon --record $GITHUB_WORKSPACE/records + - run: + docker run --rm -d \ + --name catadog \ + -v catadog:/records \ + -p 8128:8128 \ + ghcr.io/datadog/catadog:latest \ + --mock :Sink --no-forward - run: curl -I http://localhost:8128/catadog # Prepare vaccine