initial dagster setup
This commit is contained in:
parent
af2213f0ab
commit
7791d034ae
8 changed files with 232 additions and 0 deletions
20
Dockerfile_user_code_gtfs
Normal file
20
Dockerfile_user_code_gtfs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM python:3.10-slim
|
||||
|
||||
# Checkout and install dagster libraries needed to run the gRPC server
|
||||
# exposing your repository to dagster-webserver and dagster-daemon, and to load the DagsterInstance
|
||||
|
||||
RUN pip install \
|
||||
dagster \
|
||||
dagster-postgres \
|
||||
dagster-docker
|
||||
|
||||
WORKDIR /opt/dagster/app
|
||||
COPY user_code/gtfs /opt/dagster/app
|
||||
|
||||
COPY definitions.py /opt/dagster/app
|
||||
|
||||
# Run dagster gRPC server on port 4000
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
CMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-f", "definitions.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue