feat: fix dagster setup
This commit is contained in:
@@ -15,3 +15,6 @@ COPY . .
|
||||
# Make the venv's binaries available on PATH
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
ENV DAGSTER_HOME=/app/dagster_home
|
||||
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
-- Placeholder staging model.
|
||||
-- Replace this with your actual source query, e.g.:
|
||||
-- select * from {{ source('my_source', 'my_table') }}
|
||||
-- Replace with your actual source query using the source() macro.
|
||||
|
||||
select 1 as id, 'example' as name
|
||||
|
||||
@@ -6,6 +6,10 @@ x-dagster: &dagster-common
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
env_file: .env
|
||||
environment:
|
||||
DAGSTER_HOME: /app/dagster_home
|
||||
volumes:
|
||||
- dbt-target:/app/dbt/target
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -49,3 +53,4 @@ services:
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
dbt-target:
|
||||
|
||||
7
entrypoint.sh
Normal file
7
entrypoint.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
echo "Generating dbt manifest..."
|
||||
dbt parse --profiles-dir /app/dbt --project-dir /app/dbt
|
||||
|
||||
exec "$@"
|
||||
@@ -18,8 +18,12 @@ build-backend = "hatchling.build"
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["data_platform"]
|
||||
|
||||
[tool.uv]
|
||||
dev-dependencies = [
|
||||
[tool.dagster]
|
||||
module_name = "data_platform"
|
||||
attribute = "defs"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest",
|
||||
"dagster-webserver",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user