Pipeline Validator¶
Overview¶
This Application Service is a simulator to use as an alternative to the microservice infrastructure for initial integration.
The StartPipeline
API will send an event to the pipeline to begin processing.
This simulator will serve the endpoints necessary for the Job Repository Update and the Pipeline Status calls.
The necessary integration points are outlined in the Creating Custom Pipelines section.
Dependencies¶
This application service depends on the following services:
Usage¶
- Build the Pipeline Validator and the Pipeline Simulator (if using).
make docker-pipeline-val docker-pipeline-sim
-
[Optional] If using a custom pipeline service, modify the
APPLICATIONSETTINGS_PIPELINEHOST
andAPPLICATIONSETTINGS_PIPELINEPORT
variables in the filedocker-compose-pipeline-val.yml
.Note
Refer to the table below to determine the values for
APPLICATIONSETTINGS_PIPELINEHOST
andAPPLICATIONSETTINGS_PIPELINEPORT
based on the desired Run Configuration. The default value is for the Pipeline Simulator. -
To use the pipeline validator, use one of the following run options:
Run Configuration Run Command APPLICATIONSETTINGS_PIPELINEHOST APPLICATIONSETTINGS_PIPELINEPORT Run with the pipeline simulator make run-simulators
pipeline-sim
59789
Run with a custom pipeline service make run-pipeline-val
<container_name>
<Docker_network_port>
-
Open Postman and import the Postman collection from here.
- Verify that the Pipeline API works, by sending the
Get Pipelines
request. This shows all pipelines and their topics. -
Create or copy a file for the pipeline to process in
$HOME/data/gateway-files/input
.Note
The location
$HOME/data/gateway-files
is volume mounted to/tmp/files/
in the Docker container. -
Modify the
Launch Pipeline
request so that the body contains the correct file name and the appropriate mqtt topic for the selected pipeline. -
Click
Send
in Postman to send the request.Note
To monitor the status, check the pipeline container log files.
-
To check the status of the job, send the
Get Jobs
request.
Tear Down¶
- Stop the services running.
make down
- Clean up the volumes. This is a destructive action, but will clear any configuration information that is in Consul.
make clean-volumes
- Clean up the files. This is also destructive as it will clear the input directory and the output directory.
make clean-files
Swagger Documentation¶
Future Considerations¶
In the future, the Pipeline Validator may have a UI to display the job information and start the pipeline(s).
BSD 3-Clause License: See License.