mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01:00
Merge pull request #930 from Jguer/docker-build-armv7
Added arm v7 build
This commit is contained in:
commit
e1f3437c64
8
Makefile
8
Makefile
@ -64,13 +64,19 @@ docker-release-aarch64:
|
||||
docker cp yay-aarch64:${PKGNAME}_${VERSION}_aarch64.tar.gz ${PKGNAME}_${VERSION}_aarch64.tar.gz
|
||||
docker container rm yay-aarch64
|
||||
|
||||
docker-release-armv7h:
|
||||
docker build -f build/armv7h.Dockerfile -t yay-armv7h:${VERSION} .
|
||||
docker create --name yay-armv7h yay-armv7h:${VERSION}
|
||||
docker cp yay-armv7h:${PKGNAME}_${VERSION}_armv7l.tar.gz ${PKGNAME}_${VERSION}_armv7h.tar.gz
|
||||
docker container rm yay-armv7h
|
||||
|
||||
docker-release-x86_64:
|
||||
docker build -f build/x86_64.Dockerfile -t yay-x86_64:${VERSION} .
|
||||
docker create --name yay-x86_64 yay-x86_64:${VERSION}
|
||||
docker cp yay-x86_64:${PKGNAME}_${VERSION}_x86_64.tar.gz ${PKGNAME}_${VERSION}_x86_64.tar.gz
|
||||
docker container rm yay-x86_64
|
||||
|
||||
docker-release: | docker-release-x86_64 docker-release-aarch64
|
||||
docker-release: | docker-release-x86_64 docker-release-aarch64 docker-release-armv7h
|
||||
|
||||
docker-build:
|
||||
docker build -f build/${ARCH}.Dockerfile --build-arg MAKE_ARG=build -t yay-build-${ARCH}:${VERSION} .
|
||||
|
@ -2,8 +2,8 @@ FROM agners/archlinuxarm-arm64v8
|
||||
|
||||
LABEL maintainer="Jguer,joaogg3 at google mail"
|
||||
|
||||
# ARG QEMU_STATIC=build/qemu-arm-static
|
||||
# ADD ${QEMU_STATIC} /usr/bin
|
||||
ARG QEMU_STATIC=build/qemu-aarch64-static
|
||||
ADD ${QEMU_STATIC} /usr/bin
|
||||
|
||||
RUN pacman -Sy; pacman --noconfirm -S gcc go git tar make
|
||||
|
||||
|
13
build/armv7h.Dockerfile
Normal file
13
build/armv7h.Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM lopsided/archlinux-arm32v7:devel
|
||||
|
||||
ARG QEMU_STATIC=build/qemu-arm-static
|
||||
ADD ${QEMU_STATIC} /usr/bin
|
||||
|
||||
LABEL maintainer="Jguer,joaogg3 at google mail"
|
||||
|
||||
RUN pacman -Sy; pacman --noconfirm -S go git ca-certificates-utils
|
||||
|
||||
ADD . .
|
||||
|
||||
ARG MAKE_ARG=package
|
||||
RUN make ${MAKE_ARG}
|
10
build/download_prebuilt.sh
Executable file
10
build/download_prebuilt.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$( dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
|
||||
wget https://github.com/multiarch/qemu-user-static/releases/download/v3.1.0-3/qemu-aarch64-static
|
||||
wget https://github.com/multiarch/qemu-user-static/releases/download/v3.1.0-3/qemu-arm-static
|
||||
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
|
Loading…
Reference in New Issue
Block a user