Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(docker): Fix the docker build github workflow #1458

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

MichaelsJP
Copy link
Member

@MichaelsJP MichaelsJP commented May 30, 2023

Currently, the workflow doesn't seem to correctly build for arm64 platforms.

The current base image doesn't support arm64 so we need to take another one.
amazoncorretto:17.0.7-alpine3.17 is the only major java build that supports alpine and arm64. To keep vulnerabilities low we should stick to this. Any debian/ubuntu-based images are just full to the top with CVEs.

Partially fixes #1338 .

Information about the changes

  • Key functionality added:
  • Reason for change:

Examples and reasons for differences between live ORS routes, and those generated from this pull request

Required changes to ors config (if applicable)

@github-actions github-actions bot added the fix label May 30, 2023
@takb takb added this to To do in ors general May 30, 2023
@MichaelsJP MichaelsJP force-pushed the fix-wrong-multi-arch-docker-build branch 17 times, most recently from bfaf2f2 to c3937f2 Compare May 31, 2023 11:09
@MichaelsJP MichaelsJP marked this pull request as ready for review May 31, 2023 11:30
@github-actions github-actions bot added fix and removed fix labels May 31, 2023
@MichaelsJP MichaelsJP force-pushed the fix-wrong-multi-arch-docker-build branch 2 times, most recently from 2ed558c to ba01504 Compare May 31, 2023 11:45
@MichaelsJP MichaelsJP marked this pull request as draft May 31, 2023 11:50
@MichaelsJP MichaelsJP force-pushed the fix-wrong-multi-arch-docker-build branch 5 times, most recently from fc8004e to 8ca616d Compare May 31, 2023 12:21
@MichaelsJP MichaelsJP force-pushed the fix-wrong-multi-arch-docker-build branch from 8ca616d to 79decbe Compare May 31, 2023 12:29
@MichaelsJP MichaelsJP marked this pull request as ready for review May 31, 2023 12:39
@github-actions github-actions bot added fix and removed fix labels May 31, 2023
Currently, the workflow doesn't seem to correctly build for arm64 platforms. This is fixed now for the nightly images and the release workflow. arm64 tends to be really slow on building graphs while being emulated on an amd64 machine. Because of this the arm64 docker tests are only executed when the PR is set to active. Additionally, the grype checks now test both amd64 and arm64 platforms correctly.
@MichaelsJP MichaelsJP force-pushed the fix-wrong-multi-arch-docker-build branch from 79decbe to f833aae Compare May 31, 2023 12:50
@github-actions github-actions bot added fix and removed fix labels May 31, 2023
@MichaelsJP MichaelsJP enabled auto-merge May 31, 2023 13:03
@MichaelsJP MichaelsJP changed the title fix(docker): Fix the docker build github workflow ci(docker): Fix the docker build github workflow May 31, 2023
@github-actions github-actions bot added ci 👷 and removed fix labels May 31, 2023
@MichaelsJP MichaelsJP requested review from koebi and takb May 31, 2023 15:14
@github-actions github-actions bot added ci 👷 and removed ci 👷 labels May 31, 2023
Co-authored-by: Jakob Schnell <Jakob.Schnell@heigit.org>
@MichaelsJP MichaelsJP merged commit 9da8066 into master Jun 1, 2023
17 of 18 checks passed
ors general automation moved this from To do to Awaiting release Jun 1, 2023
@MichaelsJP MichaelsJP deleted the fix-wrong-multi-arch-docker-build branch June 1, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
ors general
  
Awaiting release
Development

Successfully merging this pull request may close these issues.

Rework the docker and docker-compose setup
2 participants