Using code envs with container execution

Container-based execution is compatible with code environments for:

  • Python recipes
  • R recipes
  • Custom in-memory machine learning models
  • Deep learning models

In order to make a code env “usable” for container execution, you need to select the container execution configuration(s) for which the code env Docker image must be available. This is configured in the “Container exec” tab of the code env settings.

When you “update” a code env from the code env administration page, corresponding Docker images are built for the code env (one on top of each base image from the selected container configurations). Each time you run a recipe or model using this code env and one of the selected container configuration, the corresponding Docker image will be used.

Warning

After each upgrade of DSS, you must rebuild all base images and then all code env images. You can rebuild code env images by running ./bin/dssadmin build-code-env-images --all.