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

Add buildx multiarch to prcheck as a test #142

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ docker rm -f $CONTAINER_NAME-run
# This confused me for a while because pr_check_inner.sh is also copied into the pr check container at build time
# but the template_check.sh isn't. I couldn't figure out how it was sourcing it

docker build -t $CONTAINER_NAME -f build/Dockerfile.pr .
docker buildx inspect --bootstrap
docker buildx ls
#docker buildx rm feo-builder || true
#docker buildx create --name feo-builder --use --bootstrap --driver docker-container --driver-opt image=quay.io/domino/buildkit:v0.12.0
#docker buildx build --platform linux/amd64,linux/arm64 -t $CONTAINER_NAME -f build/Dockerfile.pr .
#docker buildx rm feo-builder

docker run -i --name $CONTAINER_NAME-run -v $PWD:/workspace:ro $CONTAINER_NAME /workspace/build/pr_check_inner.sh
#docker run -i --name $CONTAINER_NAME-run -v $PWD:/workspace:ro $CONTAINER_NAME /workspace/build/pr_check_inner.sh

true
TEST_RESULT=$?

mkdir -p artifacts
#mkdir -p artifacts

docker cp $CONTAINER_NAME-run:/container_workspace/artifacts/ $PWD
#docker cp $CONTAINER_NAME-run:/container_workspace/artifacts/ $PWD

docker rm -f $CONTAINER_NAME
docker rm -f $CONTAINER_NAME-run
#docker rm -f $CONTAINER_NAME
#docker rm -f $CONTAINER_NAME-run

exit $TEST_RESULT
Loading