Hi,
1) How do I disable the buildx builder? I just want to use docker build, but the log shows that the action is using Buildx, even though I skipped the installation with the proper GitHub action (docker/setup-buildx-action@v1)
2) How do you specify multiple build-args ? I can see only one flag --build-arg. My guess is that the build fails because multiple build-args are not parsed correctly. From the complete logs you will find:
2021-10-05T17:13:54.9344616Z > [builder 3/14] RUN curl -L -o /tmp/protobuf.tar.gz https://github.com/google/protobuf/releases/download/v3.6.1, P4C_COMMIT=57f54582a, MAKEFLAGS=-j2/protobuf-cpp-3.6.1, P4C_COMMIT=57f54582a, MAKEFLAGS=-j2.tar.gz: 2021-10-05T17:13:54.9346025Z #8 0.394 % Total % Received % Xferd Average Speed Time Time Time Current 2021-10-05T17:13:54.9346765Z #8 0.394 Dload Upload Total Spent Left Speed 2021-10-05T17:13:54.9347259Z #8 0.394 2021-10-05T17:13:54.9347893Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2021-10-05T17:13:54.9348650Z 100 135 100 135 0 0 2262 0 --:--:-- --:--:-- --:--:-- 2288 2021-10-05T17:13:54.9349059Z #8 0.549 2021-10-05T17:13:54.9349674Z 100 9 100 9 0 0 58 0 --:--:-- --:--:-- --:--:-- 58 2021-10-05T17:13:54.9350260Z #8 0.674 curl: (6) Could not resolve host: P4C_COMMIT=57f54582a, 2021-10-05T17:13:54.9351051Z #8 0.799 curl: (6) Could not resolve host: MAKEFLAGS=-j2 2021-10-05T17:13:54.9351697Z #8 0.924 curl: (6) Could not resolve host: P4C_COMMIT=57f54582a, 2021-10-05T17:13:54.9352527Z #8 1.048 curl: (6) Could not resolve host: MAKEFLAGS=-j2.tar.gz
"MAKEFLAGS=-j2.tar.gz" not sure what this is.
Behaviour
Docker build will use
Buildx
even though it's not installed.Expected behaviour
Actual behaviour
Configuration
yml:
https://github.com/EmanueleGallone/p4c-docker/blob/0ada92c5350e5cc4a90e7d024eebdd068254eb08/.github/workflows/main.yml
Hi, 1) How do I disable the
buildx
builder? I just want to usedocker build
, but the log shows that the action is usingBuildx
, even though I skipped the installation with the proper GitHub action (docker/setup-buildx-action@v1
)Partial logs:
/usr/bin/docker buildx build --build-arg PROTOBUF_VERSION=3.6.1, P4C_COMMIT=57f54582a, MAKEFLAGS=-j2 --tag p4c-latest --target runtime --iidfile /tmp/docker-build-push-t4igPS/iidfile --metadata-file /tmp/docker-build-push-t4igPS/metadata-file --cache-from opennetworking/p4c:latest --secret id=GIT_AUTH_TOKEN,src=/tmp/docker-build-push-t4igPS/tmp-1556-Ez0QGbnysghc https://github.com......
2) How do you specify multiple
build-args
? I can see only one flag--build-arg
. My guess is that the build fails because multiple build-args are not parsed correctly. From the complete logs you will find:2021-10-05T17:13:54.9344616Z > [builder 3/14] RUN curl -L -o /tmp/protobuf.tar.gz https://github.com/google/protobuf/releases/download/v3.6.1, P4C_COMMIT=57f54582a, MAKEFLAGS=-j2/protobuf-cpp-3.6.1, P4C_COMMIT=57f54582a, MAKEFLAGS=-j2.tar.gz: 2021-10-05T17:13:54.9346025Z #8 0.394 % Total % Received % Xferd Average Speed Time Time Time Current 2021-10-05T17:13:54.9346765Z #8 0.394 Dload Upload Total Spent Left Speed 2021-10-05T17:13:54.9347259Z #8 0.394 2021-10-05T17:13:54.9347893Z 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2021-10-05T17:13:54.9348650Z 100 135 100 135 0 0 2262 0 --:--:-- --:--:-- --:--:-- 2288 2021-10-05T17:13:54.9349059Z #8 0.549 2021-10-05T17:13:54.9349674Z 100 9 100 9 0 0 58 0 --:--:-- --:--:-- --:--:-- 58 2021-10-05T17:13:54.9350260Z #8 0.674 curl: (6) Could not resolve host: P4C_COMMIT=57f54582a, 2021-10-05T17:13:54.9351051Z #8 0.799 curl: (6) Could not resolve host: MAKEFLAGS=-j2 2021-10-05T17:13:54.9351697Z #8 0.924 curl: (6) Could not resolve host: P4C_COMMIT=57f54582a, 2021-10-05T17:13:54.9352527Z #8 1.048 curl: (6) Could not resolve host: MAKEFLAGS=-j2.tar.gz
"MAKEFLAGS=-j2.tar.gz" not sure what this is.Complete logs: