-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Trace Analytics sample appliction to run again (#3348)
Get the Trace Analytics sample app running again. This includes version updates for dependencies and some corrections from the previous PR which started using Temurin which brought in Ubuntu in the image. Adds GitHub Actions to verify that the trace-analytics example apps can still build Docker images. Signed-off-by: David Venable <[email protected]> (cherry picked from commit 6e2942d)
- Loading branch information
1 parent
cccb92b
commit 877ff68
Showing
9 changed files
with
78 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# | ||
# Builds the Trace Analytics Docker image(s). | ||
# This will build the full Docker image for the sample-app which includes | ||
# Python applications and installing onto the base Docker image. | ||
# It also build the Java sample app and corresponding Docker image to | ||
# ensure those continue to build. | ||
# | ||
|
||
name: Trace Analytics Sample App | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'examples/trace-analytics-sample-app/**' | ||
pull_request: | ||
paths: | ||
- 'examples/trace-analytics-sample-app/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker-build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Data Prepper | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Sample App | ||
working-directory: examples/trace-analytics-sample-app | ||
run: docker build -t sample-app sample-app | ||
|
||
java-app-build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Checkout Data Prepper | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Analytics Service | ||
working-directory: ./examples/trace-analytics-sample-app/sample-app/analytics-service | ||
run: ./gradlew build | ||
|
||
- name: Build Analytics Service Docker image | ||
working-directory: ./examples/trace-analytics-sample-app/sample-app/analytics-service | ||
run: docker build -t analytics-service . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletions
16
examples/trace-analytics-sample-app/sample-app/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
dash==1.17.0 | ||
dash==2.13.0 | ||
mysql-connector==2.2.9 | ||
opentelemetry-exporter-otlp==1.12.0 | ||
opentelemetry-instrumentation-flask==0.33b0 | ||
opentelemetry-instrumentation-mysql==0.33b0 | ||
opentelemetry-instrumentation-requests==0.33b0 | ||
opentelemetry-sdk==1.12.0 | ||
protobuf==3.19.6 | ||
opentelemetry-exporter-otlp==1.20.0 | ||
opentelemetry-instrumentation-flask==0.41b0 | ||
opentelemetry-instrumentation-mysql==0.41b0 | ||
opentelemetry-instrumentation-requests==0.41b0 | ||
opentelemetry-sdk==1.20.0 | ||
protobuf==3.20.3 | ||
urllib3==2.0.4 | ||
werkzeug==2.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters