https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Arturo Martínez

05/11/2023, 8:01 PM
hello 👋! Im trying to run dagster inside a dockerfile, and I want that my jobs are triggered inside my dockerfile, does anyone know how to achieve it?
l

Le Yang

05/12/2023, 1:25 AM
If you set up the code location as a grpc instance to be included in the Dagster workspace jobs defined within the code location will run in the same context i.e., the docker container.
a

Arturo Martínez

05/12/2023, 4:09 AM
thanks Le Yang, and if I deployed dagster in dagster’s cloud, could I use a sensor for triggering a job when an endpoint of an API is requested?
s

sean

05/12/2023, 6:27 PM
Hi Arturo, the sensor evaluation function can run arbitrary logic-- if you have some kind of log to check to see that the endpoint was requested, you could do it that way. But we don’t have a direct API to “wire” an endpoint to job triggering.
2 Views