docker compose down # if already running
docker compose build
docker compose up
Done! At this point, you should be able to successfully navigate to the Dagit UI and launch the job
When using containerization, installing poetry locally is not necessary, but it is recommended; the venv it creates can be used for code completion, simple interactive debugging, and more
- Install python 3.9
- Install poetry
The alternative setup runs locally without any containerization
Note It's recommended that the application is run using the docker approach
Running locally is very similar to using the container
- Install poetry (not optional in this case)
- Export the environment variable(s)
- Open a terminal in the project root and run the following commands
# First command optional. creates `.venv` in the project root; very useful when using VSCode!
poetry config virtualenvs.in-project true
poetry install
# To use poetry (i.e. activate the virtualenv):
poetry shell
dagit -w workspace.yaml