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

enable p & z assisted installer builds #36060

Merged
merged 14 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test_binary_build_commands: |
mkdir /.cache && chmod 775 -R /.cache ${GOPATH}
tests:
- as: publish-multi-arch-images
postsubmit: true
postsubmit: false
Copy link
Contributor

Choose a reason for hiding this comment

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

be aware those are temporary changes just to enable testing in this PR. so it should not be merged

steps:
cluster_profile: packet-assisted
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test_binary_build_commands: |
tests:
- as: publish-multi-arch-images
cluster: build03
postsubmit: true
postsubmit: false
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

steps:
cluster_profile: packet-assisted
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ timeout --kill-after 10m 120m ssh "${SSHOPTS[@]}" "root@${IP}" bash -x - << EOF
cd /home/assisted
echo "${DOCKERFILE_IMAGE_PAIRS}" | tr -d '[:space:]' | awk -F , 'BEGIN{RS="|"}{printf("-f %s -t %s\n", \$1, \$2)}' | \
while read -r params ; do
docker buildx build --platform linux/amd64,linux/arm64 . --push \$params
docker buildx build --platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x . --push \$params
done
EOF
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ timeout --kill-after 10m 120m ssh "${SSHOPTS[@]}" "root@${IP}" bash -x - << EOF
tar -xzvf assisted.tar.gz -C "\${REPO_DIR}"
chown -R root:root "\${REPO_DIR}"

docker buildx create --name mybuilder --platform linux/amd64,linux/arm64
docker buildx create --name mybuilder --platform linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
docker buildx inspect mybuilder --bootstrap
docker buildx use mybuilder
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Expand Down