Skip to content

Conversation

thanethomson
Copy link
Contributor

@thanethomson thanethomson commented Jan 19, 2023

Follow-up to #137.

Fixes the Docker builds that were failing to be parsed by GitHub Actions.

Also fixes our make build-docker target to build images in the same way we do in CI. On Linux, I have to explicitly tell Docker to use BuildKit to pass the target/build platform args in:

DOCKER_BUILDKIT=1 make build-docker

Given that I've also proven now that the images do build in CI (see this workflow and this one), we no longer need to build on every change to every pull request. The E2E node Docker image in particular takes nearly 30mins to build, so that would slow us down tremendously. It's far better to build those images only once PRs get merged.


PR checklist

  • Tests written/updated, or no tests needed
  • CHANGELOG_PENDING.md updated, or no changelog entry needed
  • Updated relevant documentation (docs/) and code comments, or no
    documentation updates needed

Signed-off-by: Thane Thomson <connect@thanethomson.com>
@thanethomson thanethomson requested a review from a team as a code owner January 19, 2023 17:27
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
@thanethomson thanethomson marked this pull request as draft January 19, 2023 17:46
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
The images are built whenever we merge to `main`. Building the E2E node,
especially, takes a substantial amount of time and should ideally only
happen as we merge to `main`.

We've also proven that these builds do work now, so there's no need to
continue building these images on every push to every PR.

Signed-off-by: Thane Thomson <connect@thanethomson.com>
@thanethomson thanethomson marked this pull request as ready for review January 20, 2023 03:45
@mergify mergify bot merged commit b8a94dc into main Jan 20, 2023
@mergify mergify bot deleted the thane/137-fix-docker-builds branch January 20, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants