Skip to content

Commit 23004fd

Browse files
oyvindbergclaude
andcommitted
Add explicit DB2 schema initialization step in CI
IBM DB2 container doesn't auto-run scripts from /docker-entrypoint-initdb.d/ like PostgreSQL does. Add explicit step to run the init SQL. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 7200e5a commit 23004fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ jobs:
346346
echo "Waiting for DB2 to be healthy (this may take several minutes)..."
347347
docker compose up -d --wait db2
348348
349+
- name: Initialize DB2 schema
350+
run: |
351+
docker exec $(docker compose ps -q db2) su - db2inst1 -c "db2 -tvf /docker-entrypoint-initdb.d/01-test-tables.sql"
352+
349353
- name: Run DB2 Scala tests
350354
env:
351355
CI: true

0 commit comments

Comments
 (0)