The way computation tasks are described on Qarnot's platform is twofold:
The available constants depend on the profile used. They can be accessed through a SDK along with their default values (see code sample below), or through the profile description in Tasq.
Python
conn.profile_details("blender").constants
To use our integrated software, you might want to look at our blog tutorial articles.
However, some constants are common to several profiles, especially the ones which allow you to bring your own Docker images. Let's take a look at those:
DOCKER_CMD is certainly the most useful of all, as it is the one that allows you to parametrize the command that will be executed by the docker container.If anENTRYPOINTis specified by the Dockerfile of the image used for your payload, it will be honored. E.g. withENTRYPOINT ["echo", "Hello"]andDOCKER_CMD = " World"you will getHello Worldon the console.
DOCKER_REPO and DOCKER_TAG allow you to choose the docker image that will be used. By default, the image is searched on Docker Hub.DOCKER_REGISTRY_LOGIN and DOCKER_REGISTRY_PASSWORD let you log in to a private repository.DOCKER_SRV can be used to modify the address of the docker registry.DOCKER_SSH lets you fill in your ssh public key in ssh-enabled profiles (see the advanced use-case accessing a task through ssh).In addition, all constants, whether they are defined in the profile or in the launching script, will end up as an environment variable available in the container.