generated from broomva/databricks_session
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM --platform=linux/amd64 python:3.11 | ||
|
||
RUN mkdir -p /opt/dagster/dagster_home /opt/dagster/app | ||
|
||
COPY pyproject.toml repo.py workspace.yaml /opt/dagster/app/ | ||
|
||
RUN pip install poetry | ||
|
||
RUN poetry install | ||
|
||
ENV DAGSTER_HOME=/opt/dagster/dagster_home/ | ||
|
||
# Copy dagster instance YAML to $DAGSTER_HOME | ||
COPY dagster.yaml /opt/dagster/dagster_home/ | ||
|
||
WORKDIR /opt/dagster/app | ||
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT ["dagster-webserver", "-h", "0.0.0.0", "-p", "3000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# storage: | ||
# postgres: | ||
# postgres_db: | ||
# username: | ||
# env: DAGSTER_PG_USERNAME | ||
# password: | ||
# env: DAGSTER_PG_PASSWORD | ||
# hostname: | ||
# env: DAGSTER_PG_HOST | ||
# db_name: | ||
# env: DAGSTER_PG_DB | ||
# port: 5432 | ||
|
||
compute_logs: | ||
module: dagster.core.storage.root | ||
class: LocalArtifactStorage | ||
config: | ||
base_dir: "/opt/dagster/logs/local/" | ||
|
||
local_artifact_storage: | ||
module: dagster.core.storage.root | ||
class: LocalArtifactStorage | ||
config: | ||
base_dir: "/opt/dagster/local/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
load_from: | ||
# References the file copied into your Dockerfile | ||
- python_file: sports_articles_generation.py |