Building code env for containers

Tomas
Tomas Registered, Neuron 2022 Posts: 121 ✭✭✭✭✭
edited July 16 in Setup & Configuration

Hi,

I wonder if it is possible to somehow automatically build a newly created code env for a specific containerized execution?

In the docs there is no mention about how to pass the container conf name(s):

https://doc.dataiku.com/dss/latest/python-api/code-envs.html

I tried something like this, but it does not link the code env to the config.

ce = client.get_code_env('python', 'py3gpu')
cedef = ce.get_definition()
cedef['desc']['containerConfs'] = ['eks_config_gpu']
# OR 
cedef['containerConfs'] = ['eks_config_gpu']
ce.set_definition(cedef)

Thanks

Answers

  • Sarina
    Sarina Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 317 Dataiker

    Hi @tomas
    ,

    Thank you for the question and the steps you tried to update the containerConf fields through the API. The containerized execution settings cannot currently be updated through the API (the list of available fields that can be updated are listed in the set_definiton() call). We will update you if this ability changes in the future.

    Thanks,
    Sarina

Setup Info
    Tags
      Help me…