The python
task allows you to run python code packaged as docker images.
- task: my_python_task type: python image: myorg/myrepo:mypythonapp cmd: python my_python_app.py env_vars: env: '{{env}}' fizz: buzz mounts: - mount: mymount volume: myvol1 path: /mnt/vol1
task
: name of your task (must be made of alphanumeric, dash and/or underscore characters only).
image
: name of image to run.
cmd
: command to run when running the image.
env_vars
: environment variables to set when running the image.
mounts
: list of mount
s defined by the following attributes:
mount
: name of the mount.
volume
: volume to mount. volumes are defined in the volumes
section of liminal.yml
path
: path in which to mount the volume. this is the path accessible to user code.