Closed4

dbtとlightdashを試したい

ara_ta3ara_ta3

dbt init Makefile

run/docker:
	docker run -ti  \
		--mount type=bind,source=./,target=/usr/app \
		--mount type=bind,source=./profiles,target=/root/.dbt/ \
		ghcr.io/dbt-labs/dbt-postgres:1.6.3 init .
ara_ta3ara_ta3

git clone https://github.com/lightdash/lightdash

tree -L 2
.
├── hello
│   ├── README.md
│   ├── analyses
│   ├── dbt_project.yml
│   ├── macros
│   ├── models
│   ├── seeds
│   ├── snapshots
│   └── tests
├── lightdash
│   ├── CHANGELOG.md
│   ├── LICENSE
│   ├── Makefile
│   ├── README.md
│   ├── SECURITY.md
│   ├── docker
│   ├── docker-compose.yml
│   ├── dockerfile
│   ├── dockerfile-prs
│   ├── docs
│   ├── examples
│   ├── lightdash-pr.yml
│   ├── lightdash.yml
│   ├── package.json
│   ├── packages
│   ├── release.config.js
│   ├── render.yaml
│   ├── screenshot.png
│   ├── scripts
│   ├── static
│   ├── tsconfig.json
│   └── yarn.lock
└── logs
    └── dbt.log

16 directories, 19 files
ara_ta3ara_ta3

Makefile in lightdash dir

DBT=$(realpath $(PWD)/../hello)

echo:
	echo $(DBT)

run:
	env DBT_PROJECT_DIR=$(DBT) \
		DBT_PROFILES_DIR=$(DBT) docker compose -f docker-compose.yml up
ara_ta3ara_ta3

lightdashのpullがめっちゃ時間かかったので別途pullした

docker pull lightdash/lightdash:latest
このスクラップは2023/12/03にクローズされました