Skip to content

Conversation

@robbycochran
Copy link
Contributor

@robbycochran robbycochran commented Apr 30, 2025

Description

  • Update images/stackrox-build.Dockerfile and images/stackrox-test.Dockerfile to support downloading and installing needed libraries for arm64.
  • Add a multi-arch build action and workflow to push multi-arch (amd64 + arm64) build and test images
  • Tested/Utilized in ROX-29043: ARM64 unittests stackrox#15140

Updates / Issues

Changes to build image:

Changes to test image:

  • added google cloud repo manually
  • DOCKER_VERSION=20.10.6 to docker:28.0.0 and binaries installed via static docker image rather than download
  • skipped due to unavailability on arm64: https://github.com/joshdk/hub-comment

Not migrated:

  • UI image (Possible followup: Deprecate UI image and add needed packages to test image)
  • Scanner images

Testing

@robbycochran
Copy link
Contributor Author

@tommartensen what do you think about keepking TARGETARCH as is? See my comment here https://github.com/stackrox/rox-ci-image/pull/225/files#r2168074052

@tommartensen
Copy link
Contributor

@tommartensen what do you think about keepking TARGETARCH as is? See my comment here https://github.com/stackrox/rox-ci-image/pull/225/files#r2168074052

Agree. I resolved those comments, but there is still one suggestion: https://github.com/stackrox/rox-ci-image/pull/225/files#r2166203025

Copy link
Contributor

@davdhacs davdhacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
(my question doesn't require a change)

amd64) echo "TARGETARCH_ALT=x86_64" ;; \
arm64) echo "TARGETARCH_ALT=aarch64" ;; \
*) echo "Unsupported $TARGETARCH"; exit 1;; \
esac > /arch.env
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could TARGETARCH_ALT be added as another ARG/ENV variable instead of stored in a file, or does it need to be visible in a file for another reason than re-use in following steps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and made this change, the file storage isn't necessary.

@robbycochran
Copy link
Contributor Author

robbycochran commented Aug 4, 2025

The ui-image build failure is due to a broken postgres package signature (pgdg-packaging/pgdg-rpms#64).

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.

3 participants