Skip to content

fix(e2e): pass TARGETARCH and enable buildkit for explorer docker build - #296

Closed
farooqazamwasimnl wants to merge 5 commits into
hyperledger:mainfrom
farooqazamwasimnl:fix/explorer-build-targetarch
Closed

fix(e2e): pass TARGETARCH and enable buildkit for explorer docker build#296
farooqazamwasimnl wants to merge 5 commits into
hyperledger:mainfrom
farooqazamwasimnl:fix/explorer-build-targetarch

Conversation

@farooqazamwasimnl

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • Test update

Description

Fixes block explorer image building in build-e2e.sh:

  • Enables BuildKit (DOCKER_BUILDKIT=1) required for cache mount syntax (--mount=type=cache,target=/root/.npm) in the release Dockerfile.
  • Explicitly passes --build-arg TARGETARCH="${EXPLORER_BUILD_ARCH}" so the Go binary copy stage resolves the correct architecture path (release/linux-${TARGETARCH}/explorer).

Additional details (Optional)

Tested locally with ./integration/test/build-e2e.sh, successfully building localhost/fabric-x-block-explorer:v0.1.1.

Related issues

Fixes failed CI run in workflow E2E Integration Test (run 34106763394).

Signed-off-by: Farooq Azam Wasim <Farooq.Azm.Wasim-CIC.Netherlands@ibm.com>
…-x ref to v1.0.1

Signed-off-by: Farooq Azam Wasim <Farooq.Azm.Wasim-CIC.Netherlands@ibm.com>
…atibility

Signed-off-by: Farooq Azam Wasim <Farooq.Azm.Wasim-CIC.Netherlands@ibm.com>
@farooqazamwasimnl
farooqazamwasimnl force-pushed the fix/explorer-build-targetarch branch from 5d81ff1 to 39957e4 Compare September 7, 2026 10:38
…ching requestmaxbytes

Signed-off-by: Farooq Azam Wasim <Farooq.Azm.Wasim-CIC.Netherlands@ibm.com>
…e log dump

- Use local fabric-x workspace by default to build tools matching the PR / commit
- Dump container logs on failure before cleanup
- Clean up explorer and postgres containers in clean-docker.sh
- Set default FABRIC_X_REF to main in refs.conf

Signed-off-by: Farooq Azam Wasim <Farooq.Azm.Wasim-CIC.Netherlands@ibm.com>
@farooqazamwasimnl
farooqazamwasimnl force-pushed the fix/explorer-build-targetarch branch 3 times, most recently from 62cf635 to da3a192 Compare September 7, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant