The Dataiku Frontrunner Awards are now accepting submissions until July 15 to recognize your achievements! ENTER YOUR SUBMISSION

Building code env for containers

tomas
Level 5
Building code env for containers

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

0 Kudos
1 Reply
SarinaS
Dataiker
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

0 Kudos
A banner prompting to get Dataiku DSS
Public