Nidhin Nandhakumar

04/03/2023, 4:04 PM
hello everyone, I am new to dagster. I am trying to create dasgter in local docker. I followed the example here. however in the example dagster picks up all the assets and code from the file which is a single file. in my usecase, I am creating a folder called “etl” which will have the assets, schedules and other job files. is there a way to pick up all files under a folder when using the gRPC command? currently it is like this CMD [“dagster”, “api”, “grpc”, “-h”, “", “-p”, “4000", “-f”, “./”] how would I change this to pick up all files from under a folder?
:dagster-bot-resolve: 1

Aaron T

04/03/2023, 4:25 PM
You should be able to use the
command instead of
assuming your
folder is a python module with an
in it

Nidhin Nandhakumar

04/03/2023, 4:39 PM
it does not seem to work. this is how my repo is structured: and also my docker file is
FROM 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 \

# Add repository code

WORKDIR /opt/dagster/app

COPY etl /opt/dagster/app

# Run dagster gRPC server on port 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", "", "-p", "4000", "-m", "/opt/dagster/app"]

Aaron T

04/03/2023, 4:45 PM
I think you would also need a pyproject.toml and - pyproject.toml
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

name = "etl project name"
version = "0.0.1"
authors = [
    { name="your name", email="your email" }

module_name = "etl"

Nidhin Nandhakumar

04/03/2023, 8:47 PM
I think it works nw. thanks for the help
👍 1