From 311cc43d746a8d5e9b79d7d08ecdb72b1cb69505 Mon Sep 17 00:00:00 2001 From: Kondaka Date: Fri, 21 Jun 2024 11:34:05 -0700 Subject: [PATCH] DPLive debugging Signed-off-by: Kondaka --- .github/workflows/dplive.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dplive.yml diff --git a/.github/workflows/dplive.yml b/.github/workflows/dplive.yml new file mode 100644 index 0000000000..c88a993af9 --- /dev/null +++ b/.github/workflows/dplive.yml @@ -0,0 +1,25 @@ +name: DP Live Debugger + +on: + workflow_dispatch: + inputs: + configuration: + description: "data prepper pipeline configuration" + required: true + type: string + +permissions: + id-token: write + contents: write + issues: write + +jobs: + - name: Run DataPrepper docker + run: | + echo "test input line" > input-file + echo "sample-pipeline:\n\tsource:\n\t\tfile:\n\t\t\tpath:"./input-file"\n\tsink:\n\t\tfile:\n\t\t\tpath:"./output-file" >pipeline-config.yaml + echo "ssl: false" > data-prepper-config.yaml + docker pull opensearch-data-prepper:latest + docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -d opensearchproject/opensearch:${{ matrix.opensearch }} + docker run --name data-prepper --network host -v pipeline-config.yaml:/usr/share/data-prepper/pipelines/pipelines.yaml -v ./data-prepper-config.yaml:/usr/share/data-prepper/config/data-prepper-config.yaml opensearch-data-prepper:latest + sleep 90