jaypore_ci.executors package
Submodules
jaypore_ci.executors.docker module
A docker executor for Jaypore CI.
- class jaypore_ci.executors.docker.Docker[source]
Bases:
Executor
Run jobs via docker. To communicate with docker we use the Python docker sdk.
- Using this executor will:
Create a separate network for each run
Run jobs as part of the network
Clean up all jobs when the pipeline exits.
- create_network()[source]
Will create a docker network.
If it fails to do so in 3 attempts it will raise an exception and fail.
- delete_all_jobs()[source]
Deletes all jobs associated with the pipeline for this executor.
It will stop any jobs that are still running.
- run(job: Job) str [source]
Run the given job and return a docker container ID. In case something goes wrong it will raise TriggerFailed
- set_pipeline(pipeline)[source]
Set executor’s pipeline to the given one.
This will clean up old networks and create new ones.