feat: bi-tools プロジェクト用コンテナを追加#86
Merged
Merged
Conversation
- containers/bi-tools/{Dockerfile,compose.yml} を新設
- devbase-base に dbt-core + dbt-bigquery(1.12系 / Python 3.11)を uv tool で追加
- Lightdash クライアント CLI (@lightdash/cli) を追加
- Evidence/Superset は docker-compose・プロジェクトローカルnpmで動くためホストCLIは非追加
- CHANGELOG [Unreleased] に追記
コンテナは containers/<name> のディレクトリ自動探索で解決されるため登録作業は不要。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019JxZLUkYxtAUeLWiXpEML6
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
bi-tools プロジェクト(BigQuery 上の共有 dbt + Lightdash/Superset/Evidence スタック)向けの開発コンテナ
containers/bi-toolsを追加します。devbase-generalでは dbt 本体が無く、都度 venv を立てる必要があったため、必要ツールを焼き込んだ専用イメージを用意します。関連 Issue
変更点
containers/bi-tools/Dockerfileを追加(FROM devbase-base:latest)uv toolで隔離インストール。dbtを提供するのは dbt-core のため dbt-core を主・アダプタを--withで同梱。@lightdash/cli)をnpm i -gで追加(lightdash deploy/previewをホストから実行)。npx)で動くため、ホスト常駐 CLI は追加しない旨をコメントで明記。containers/bi-tools/compose.ymlを追加(devbase-bi-tools:latest)。CHANGELOG.mdの[Unreleased] > Addedに追記。containers/<name>のディレクトリ自動探索(bin/devbase)で解決されるため、中央登録の更新は不要。動作確認
docker build -t devbase-bi-tools:latest containers/bi-toolsが成功dbt --version→ Core 1.12.0 / bigquery 1.12.0dbt(1.12.0) /lightdash(0.3401.1) /bq/node(v24) /npxが解決スクリーンショット・ログ(任意)
```
dbt: - installed: 1.12.0 (+ bigquery: 1.12.0)
lightdash: 0.3401.1 @ /usr/bin/lightdash
node: v24.18.0 / npx: /usr/bin/npx
bq: /opt/google-cloud-sdk/bin/bq
```
補足
dbt パッケージ(dbt_utils 等)は各プロジェクトの
dbt depsで取得、profiles.ymlはユーザ固有 ADC/OAuth 認証のためイメージには焼き込んでいません。