Skip to content

Commit

Permalink
Docker image in it
Browse files Browse the repository at this point in the history
  • Loading branch information
peel committed May 30, 2024
1 parent 1cca8df commit 28450cf
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/telemetryIntegTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
- name: build
run: |
sbt stdout/docker:publishLocal
- name: Get current SBT version
id: ver
run: |
export PROJECT_VERSION=$(sbt version -Dsbt.log.noformat=true | perl -ne 'print "$1\n" if /info.*(\d+\.\d+\.\d+[^\r\n]*)/' | tail -n 1 | tr -d '\n')
echo "::set-output name=project_version::$PROJECT_VERSION"
- name: run micro
run: >
docker run -d
Expand All @@ -34,13 +29,12 @@ jobs:
--iglu /config/iglu.json
- name: run collectors
run: >-
docker run -d --name enabled \
-v ${PWD}/.github/workflows/integration_tests/telemetry/sender_config/config.hocon:/snowplow/config.hocon \
-p 9292:9292 snowplow/scala-stream-collector-stdout:${PROJECT_VERSION} &&
docker run -d --name disabled \
-v ${PWD}/.github/workflows/integration_tests/telemetry/sender_config/config_disabled.hocon:/snowplow/config.hocon \
-p 10292:10292 snowplow/scala-stream-collector-stdout:${PROJECT_VERSION}
sleep 30
docker run -d --name enabled -v ${PWD}/.github/workflows/integration_tests/telemetry/sender_config/config.hocon:/snowplow/config.hocon -p 9292:9292 snowplow/scala-stream-collector-stdout --config /snowplow/config.hocon;
docker run -d --name disabled
-v ${PWD}/.github/workflows/integration_tests/telemetry/sender_config/config_disabled.hocon:/snowplow/config.hocon
-p 10292:10292 snowplow/scala-stream-collector-stdout --config /snowplow/config.hocon;
sleep 30;
docker kill enabled && docker kill disabled
- name: assess result
run: |
pip install requests
Expand Down

0 comments on commit 28450cf

Please sign in to comment.