Ryan Meekins
03/27/2023, 3:33 PMben
03/27/2023, 3:42 PMdagster_cloud.yaml
file in order to build/deploy another code location.Ryan Meekins
03/27/2023, 3:45 PMsetup.py
file in my project rootShalabh Chaturvedi
03/27/2023, 4:46 PMsetup.py
. Then in your dagster_cloud.yaml
you specify the directory for each code location by build: directory:
.
For example, with this structure
project/
subdir1/
module1/
setup.py
subdir2
module2/
setup.py
dagster_cloud.yaml
your dagster_cloud.yaml
would contain
locations:
- location_name: subdir1
code_source:
package_name: module1
build:
directory: subdir1
- location_name: subdir2
code_source:
package_name: module2
build:
directory: subdir2
To share code across these directories you can add another directory next to subdir1
, eg shared3
and then add the following in subdir1/requirements.txt
and `subdir2/requirements.txt`:
../shared3
Shalabh Chaturvedi
03/27/2023, 5:59 PMRyan Meekins
03/27/2023, 8:20 PM