Skip to content

Commit 8510a4b

Browse files
author
Renaud Gaubert
committed
Fix incorrect arch for docker
Signed-off-by: Renaud Gaubert <[email protected]>
1 parent f087fca commit 8510a4b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mk/docker.mk

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
# limitations under the License.
1414
#
1515

16+
docker: SHELL:=/bin/bash
1617
docker: ubuntu18.04 ubuntu16.04 debian10 debian9 centos7 amazonlinux1 amazonlinux2 opensuse-leap15.1
1718

18-
ubuntu%: SHELL:=/bin/bash
19+
ubuntu%: ARCH := amd64
1920
ubuntu%:
2021
$(DOCKER) build --build-arg VERSION_ID=$* \
2122
--build-arg WITH_LIBELF=$(WITH_LIBELF) \
@@ -27,7 +28,7 @@ ubuntu%:
2728
$(DOCKER) cp $$(cat $@.cid):/mnt/. $(DIST_DIR)/ubuntu$*/$(ARCH)
2829
$(DOCKER) rm $$(cat $@.cid) && rm $@.cid
2930

30-
debian%: SHELL:=/bin/bash
31+
debian%: ARCH := amd64
3132
debian%:
3233
$(DOCKER) build --build-arg VERSION_ID=$* \
3334
--build-arg WITH_LIBELF=$(WITH_LIBELF) \
@@ -39,7 +40,7 @@ debian%:
3940
$(DOCKER) cp $$(cat $@.cid):/mnt/. $(DIST_DIR)/debian$*/$(ARCH)
4041
$(DOCKER) rm $$(cat $@.cid) && rm $@.cid
4142

42-
centos%: SHELL:=/bin/bash
43+
centos%: ARCH := x86_64
4344
centos%:
4445
$(DOCKER) build --build-arg VERSION_ID=$* \
4546
--build-arg WITH_LIBELF=$(WITH_LIBELF) \
@@ -51,7 +52,7 @@ centos%:
5152
$(DOCKER) cp $$(cat $@.cid):/mnt/. $(DIST_DIR)/centos$*/$(ARCH)
5253
$(DOCKER) rm $$(cat $@.cid) && rm $@.cid
5354

54-
amazonlinux%: SHELL:=/bin/bash
55+
amazonlinux%: ARCH := x86_64
5556
amazonlinux%:
5657
$(DOCKER) build --build-arg VERSION_ID=$* \
5758
--build-arg WITH_LIBELF=$(WITH_LIBELF) \
@@ -64,7 +65,7 @@ amazonlinux%:
6465
$(DOCKER) rm $$(cat $@.cid) && rm $@.cid
6566

6667

67-
opensuse-leap%: SHELL:=/bin/bash
68+
opensuse-leap%: ARCH := x86_64
6869
opensuse-leap%:
6970
$(DOCKER) build --build-arg VERSION_ID=$* \
7071
--build-arg WITH_LIBELF=$(WITH_LIBELF) \

0 commit comments

Comments
 (0)