Created
September 1, 2021 13:18
-
-
Save andypost/245b6ed58384f9045ca33fa443ca98f8 to your computer and use it in GitHub Desktop.
Alpinelinux docker CI images for each arch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: run | |
all: x86_64 | |
IMAGE_ALP=alpinelinux/alpine-gitlab-ci:latest- | |
builder = docker run --rm -it --network host \ | |
--cap-add=SYS_PTRACE --privileged \ | |
--platform=linux/$(or ${2}, ${1}) \ | |
-v $(shell pwd):/mnt -e APORTSDIR=/mnt -w /mnt \ | |
--entrypoint='' $(IMAGE_ALP)${1} /bin/ash | |
x86: | |
$(call builder,x86,386) | |
x86_64: | |
$(call builder,x86_64) | |
s390x: | |
$(call builder,s390x) | |
ppc64le: | |
$(call builder,ppc64le) | |
armv7: | |
$(call builder,armv7,arm/v7) | |
armhf: | |
$(call builder,armhf) | |
aarch64: | |
$(call builder,aarch64) | |
riscv64: | |
$(call builder,riscv64) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment