Total WIP

This commit is contained in:
IamTheFij 2019-03-08 21:25:08 +00:00
parent b7d77120b1
commit 701027cc9c
4 changed files with 26 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
qemu-aarch64-static
qemu-arm-static
qemu-x86_64-static
*.tar.gz

View File

@ -1,6 +1,10 @@
ARG REPO=library
FROM ${REPO}/python:3-alpine
ARG ARCH=x86_64
COPY ./qemu-${ARCH}-static /usr/bin/
RUN mkdir -p /src
WORKDIR /src

View File

@ -11,6 +11,14 @@ update:
build:
docker build . -t ${DOCKER_TAG}
build/qemu-arm-static:
mkdir -p build
wget -N https://github.com/multiarch/qemu-user-static/releases/download/v2.9.1-1/x86_64_qemu-${target_arch}-static.tar.gz
tar -xvf x86_64_qemu-${target_arch}-static.tar.gz
cross-build-arm32v6:
docker build --build-arg REPO=arm32v6 --build-arg ARCH=arm . -t ${DOCKER_TAG}-arm32v6
run: build
docker run --rm -e DOMAIN=${DOMAIN} \
-e CF_API_EMAIL=${CF_API_EMAIL} \

10
get_qemu.sh Executable file
View File

@ -0,0 +1,10 @@
#! /bin/bash
HOST_ARCH=x86_64
VERSION=v2.9.1-1
for target_arch in aarch64 arm x86_64; do
wget -N https://github.com/multiarch/qemu-user-static/releases/download/$VERSION/${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
tar -xvf ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
rm ${HOST_ARCH}_qemu-${target_arch}-static.tar.gz
done