DPLive debugging 2 #2
Workflow file for this run
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
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 |