Skip to content

Commit

Permalink
chore: added entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
broomva committed Feb 3, 2024
1 parent ecbc40a commit 2f1f25e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vortex/flows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ ENV DAGSTER_HOME=/opt/dagster/dagster_home/
# Copy dagster instance YAML to $DAGSTER_HOME
COPY dagster.yaml /opt/dagster/dagster_home/

# Copy the entrypoint script into the image
COPY entrypoint.sh /opt/dagster/app/

WORKDIR /opt/dagster/app

EXPOSE 3000

ENTRYPOINT ["dagster-webserver", "-h", "0.0.0.0", "-p", "3000"]
# Use the entrypoint script as the entrypoint
ENTRYPOINT ["./entrypoint.sh"]
10 changes: 10 additions & 0 deletions vortex/flows/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Start the first process
dagster-webserver -h 0.0.0.0 -p 3000 &

# Start the second process
dagster-daemon run &

# Wait for both processes to finish
wait -n

0 comments on commit 2f1f25e

Please sign in to comment.