https://dagster.io/ logo
#dagster-support
Title
# dagster-support
s

Simon Frid

02/07/2023, 6:47 PM
I’m trying to understand how the jobs’s python virtualenv may differ from the code location’s python virtualenv. It looks that by default, jobs are spun from the same docker image. Would it be possible to spin up code-locations with different images, or similarly, the same image, but different using different virtualenvs. (This is about specifying differences between jobs and code-location, not configuration for container ops.)
z

Zach

02/07/2023, 8:26 PM
this might be along the lines of what you're looking for with regards to different images. I don't think Dagster does anything specifically with virtualenvs, that seems more dependent on how you build your container
s

sean

02/08/2023, 12:57 PM
Hi Simon-- a little confused by this part of your question:
understand how the jobs’s python virtualenv may differ from the code location’s python virtualenv… Would it be possible to spin up code-locations with different images, or similarly, the same image, but different using different virtualenvs.
Are you trying to spin up multiple code locations with different virtualenvs, or launch multiple jobs from the same code location but with different virtualenvs?
s

Simon Frid

02/08/2023, 6:15 PM
@sean the latter - I’m trying to use the same code-location for different jobs, each with it’s own virtualenv
s

sean

02/08/2023, 6:16 PM
OK I’m going to call in a colleague who knows these APIs better.
🙏 1