In TrueFoundry workflow you can pass the dockerfile path in the task config, this is useful when you want to install a binary and use it in your python function task like using a jq command, etc.
TaskDockerFileBuild
and use it in PythonTaskConfig
.In this guide, we will see how to write a Python function task with a dockerfile. In this example, we will take a string as an input and then will calculate the SHA56 hash from the input. We will be passing the
Before you proceed with the guide, make sure you have the following:
Create a workflow.py where we will write the code for our workflow and place it in the project root directory with your Dockerfile.
Your directory structure will then appear as follows:
Dockerfile
workflow.py
Now run the below command in the terminal to deploy your workflow, replace <workfspace-fqn>
with the workspace fqn which you can find on the UI.
In TrueFoundry workflow you can pass the dockerfile path in the task config, this is useful when you want to install a binary and use it in your python function task like using a jq command, etc.
TaskDockerFileBuild
and use it in PythonTaskConfig
.In this guide, we will see how to write a Python function task with a dockerfile. In this example, we will take a string as an input and then will calculate the SHA56 hash from the input. We will be passing the
Before you proceed with the guide, make sure you have the following:
Create a workflow.py where we will write the code for our workflow and place it in the project root directory with your Dockerfile.
Your directory structure will then appear as follows:
Dockerfile
workflow.py
Now run the below command in the terminal to deploy your workflow, replace <workfspace-fqn>
with the workspace fqn which you can find on the UI.