Matt Menzenski
07/19/2022, 9:39 PMrex
07/19/2022, 9:40 PMMatt Menzenski
07/19/2022, 9:43 PMrex
07/19/2022, 9:44 PMMatt Menzenski
07/19/2022, 9:47 PMrex
07/19/2022, 9:49 PMMatt Menzenski
07/19/2022, 9:49 PMMatt Menzenski
08/02/2022, 8:54 PMEnvironment:
DAGSTER_CURRENT_IMAGE: <http://docker.io/dagster/user-code-example:0.15.8|docker.io/dagster/user-code-example:0.15.8>
but I don’t see a Dockerfile in https://github.com/dagster-io/dagster/tree/master/examples/deploy_k8s/example_project - how can I build my own image that can be run as a dagster workspace/repository?
I’d like to tinker with some IO (S3, RDS, Redshift) and I don’t see an obvious path forward for either extending the provided user code and redeploying, or for creating a new repository of my own.
Can anyone point me in the right direction?Matt Menzenski
08/03/2022, 3:10 AMAndrea Giardini
08/03/2022, 8:58 AMMatt Menzenski
08/03/2022, 2:22 PMdagsterApiGrpcArgs
block
dagsterApiGrpcArgs:
- "-f"
- "/example_project/example_repo/repo.py"
that python file just needs to have a @repository
defined?
If I run the dagster new-project PROJECT_NAME
command, can I just point that dagsterApiGrpcArgs
argument at that new project’s PROJECT_NAME/repository.py
(https://docs.dagster.io/getting-started/create-new-project#create-a-new-project)Andrea Giardini
08/03/2022, 2:29 PMMatt Menzenski
08/03/2022, 3:19 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
# Set $DAGSTER_HOME and copy dagster instance there
ENV DAGSTER_HOME=/opt/dagster/dagster_home
RUN mkdir -p $DAGSTER_HOME
COPY dagster.yaml $DAGSTER_HOME
# Add repository code
WORKDIR /opt/dagster/app
COPY repo.py /opt/dagster/app
# Run dagster gRPC server on port 4000
EXPOSE 4000
# Using CMD rather than ENTRYPOINT allows the command to be overridden in
# run launchers or executors to run other commands using this image
CMD ["dagster", "api", "grpc", "-h", "0.0.0.0", "-p", "4000", "-f", "repo.py"]
Andrea Giardini
08/03/2022, 3:40 PMMatt Menzenski
08/03/2022, 3:40 PM