Nidhin Nandhakumar
04/03/2023, 4:04 PMAaron T
04/03/2023, 4:25 PM-m
command instead of -f
assuming your etl
folder is a python module with an __init__.py
in itNidhin Nandhakumar
04/03/2023, 4:39 PMFROM python:3.7-slim
# Checkout and install dagster libraries needed to run the gRPC server
# exposing your repository to dagit and dagster-daemon, and to load the DagsterInstance
RUN pip install \
dagster \
dagster-postgres \
dagster-docker
# Add repository code
WORKDIR /opt/dagster/app
COPY etl /opt/dagster/app
# Run dagster gRPC server on port 4000
EXPOSE 4000
# CMD allows this to be overridden from run launchers or executors that want
# to run other commands against your repository
CMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-m", "/opt/dagster/app"]
Aaron T
04/03/2023, 4:45 PM[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "etl project name"
version = "0.0.1"
authors = [
{ name="your name", email="your email" }
]
[tool.dagster]
module_name = "etl"
Nidhin Nandhakumar
04/03/2023, 8:47 PM