Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.38 KB

Dagster Pipeline Example

Setup (using a container)

Build and Run Dagster

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

Install Poetry (optional)

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

Alternative Setup (no container)

The alternative setup runs locally without any containerization

Note It's recommended that the application is run using the docker approach

Run Dagster Locally

Running locally is very similar to using the container

  1. Install poetry (not optional in this case)
  2. Export the environment variable(s)
  3. 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