The current supported task types are:
Shell Task
This is used to run:
• sh or bash scripts on linux or mac
• any native executable available on the system
• bat script or powershell script on Windows
Attributes:
• command: the command that needs to be run like cat, /usr/bin/backup_mysql.sh (which is the command or the bash script that needs to be run). This can be an absolute path to a file already on the machine where tex runs or a relative path to the python script inside the code artifact zip file.
• args: an array of strings that are passed to the executable as parameters. After each parameter, hit "enter" to add the stirng to the argument.
PythonTask
This task type is used to run python scripts. Tex currently only supports running python3 scripts. If your task requires specific python libraries, you can define a requirements.txt in the code artifact zip file which lists all dependencies in the standard format. Tex will create a virtual env for this workflow which live inside the workflow folder. The virtual env will be activated each time this task needs to be executed.
The attributes of a python task are:
• script (Required): The script to the python script that needs to be executed. This can be an absolute path to a file already on the machine where tex runs or a relative path to the python script inside the code artifact zip file.
• args (optional): an array of strings that are passed to the bash script as parameters.
Requirements:
The system where tex is running must have python3 installed and available as python on Windows and python3 on *nix.
If you are using a requirements.txt to manage dependencies, pip3 and venv must be available.
Run Docker
Docker (https://www.docker.com/)is a containerization technology. Using this task type you can run any docker image. The attributes required to configure a docker run are:
• Docker Image (required): The image that needs to be run. This can be an image from docker-hub or from any private container registry. If its from a private container registry like ECR, please add the fully qualified image name. The machine should already have credentials to pull the required images from the repository.
• Commands (optional): If you want to override the process that the docker container to run. If this is kept empty, then the default RUN command is executed.
• Arguments (optional): If you need to pass any optional arguments or parameters to the docker image.
Requirements:
Docker daemon must be running on the same machine where the tex is running. On linux, tex will communicate to the docker daemon using the standard socket and on Windows using the docker REST API available on the standard port locally. Running docker containers on remote machines is not supported.
Authentication to container registry: There is no explicit authentication and authorization configured to talk to the a private container registry if one is being used. Refer to Docker login on how to provide login credentials. Most private container registries like AWS ECR, Google Container Registry/Artifact registry also provide instructions on how to use their respective IAM mechanisms to allow your instance to pull images from the registry. Please refer to your vendor provided instructions for authenticating the docker daemon to your container registry.