refactor: consolidate CI and local dev orchestration (#108)
## Summary - Extract shared bootstrap functions into `scripts/bootstrap-common.sh` (eliminates ~120 lines of duplicated forge/cast commands from e2e.yml) - Create reusable `scripts/wait-for-service.sh` for health checks (replaces 60-line inline wait-for-stack) - Merge dev and CI entrypoints into unified scripts branching on `CI` env var (delete `docker/ci-entrypoints/`) - Replace 4 per-service CI Dockerfiles with parameterized `docker/Dockerfile.service-ci` - Add `sync-tax-rates.mjs` to CI image builder stage - Fix: CI now grants txnBot recenter access (was missing) - Fix: txnBot funding parameterized (CI=10eth, local=1eth) - Delete 5 obsolete migration docs and 4 DinD integration files Net: -1540 lines removed Closes #107 ## Test plan - [ ] E2E pipeline passes (bootstrap sources shared script, services use old images with commands override) - [ ] build-ci-images pipeline builds all 4 services with unified Dockerfile - [ ] Local dev stack boots via `./scripts/dev.sh start` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: openhands <openhands@all-hands.dev> Reviewed-on: https://codeberg.org/johba/harb/pulls/108
This commit is contained in:
parent
4277f19b68
commit
e5e1308e72
45 changed files with 882 additions and 2627 deletions
|
|
@ -88,7 +88,7 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: containers/node-dev.Containerfile
|
||||
entrypoint: ["/workspace/containers/ponder-dev-entrypoint.sh"]
|
||||
entrypoint: ["/workspace/containers/ponder-entrypoint.sh"]
|
||||
user: "0:0"
|
||||
volumes:
|
||||
- .:/workspace:z
|
||||
|
|
@ -119,7 +119,7 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: containers/node-dev.Containerfile
|
||||
entrypoint: ["/workspace/containers/webapp-dev-entrypoint.sh"]
|
||||
entrypoint: ["/workspace/containers/webapp-entrypoint.sh"]
|
||||
user: "0:0"
|
||||
volumes:
|
||||
- .:/workspace:z
|
||||
|
|
@ -141,14 +141,14 @@ services:
|
|||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5173/"]
|
||||
interval: 5s
|
||||
retries: 6
|
||||
retries: 24
|
||||
start_period: 10s
|
||||
|
||||
landing:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: containers/node-dev.Containerfile
|
||||
entrypoint: ["/workspace/containers/landing-dev-entrypoint.sh"]
|
||||
entrypoint: ["/workspace/containers/landing-entrypoint.sh"]
|
||||
user: "0:0"
|
||||
volumes:
|
||||
- .:/workspace:z
|
||||
|
|
@ -175,7 +175,7 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: containers/node-dev.Containerfile
|
||||
entrypoint: ["/workspace/containers/txn-bot-entrypoint.sh"]
|
||||
entrypoint: ["/workspace/containers/txnbot-entrypoint.sh"]
|
||||
user: "0:0"
|
||||
volumes:
|
||||
- .:/workspace:z
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue