Dropped building of ARM images in Travis CI in favor of manual building

This commit is contained in:
Quentin McGaw
2019-04-26 16:20:23 +02:00
parent 99f48b964b
commit 39ed1d93f5
4 changed files with 9 additions and 31 deletions

View File

@@ -1,28 +1,14 @@
sudo: required
services:
- docker
branches:
only:
- master
env:
global:
- DOCKER_BUILD=qmcgaw/private-internet-access
- MICROBADGER_CODE=tQFy7AxtSUNANPe6aoVChYdsI_I=
matrix:
- TARGET_IMAGE=${DOCKER_BUILD}
- ARCH=armhf
BASE_IMAGE=arm32v6/alpine
TARGET_IMAGE=${DOCKER_BUILD}:${ARCH}
QEMU=https://github.com/multiarch/qemu-user-static/releases/download/v3.1.0-3/qemu-arm-static
- ARCH=aarch64
BASE_IMAGE=arm64v8/alpine
TARGET_IMAGE=${DOCKER_BUILD}:${ARCH}
QEMU=https://github.com/multiarch/qemu-user-static/releases/download/v3.1.0-3/qemu-arm-static
- name=x86_64
script:
- set -e
- echo "$DOCKER_PASSWORD" | docker login -u qmcgaw --password-stdin
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker build -t ${TARGET_IMAGE} --build-arg BASE_IMAGE=${BASE_IMAGE} --build-arg QEMU=${QEMU} --build-arg VCF=${TRAVIS_COMMIT} --build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" .
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && docker push ${DOCKER_BUILD} || false'
- docker build .
after_script:
- "curl -X POST https://hooks.microbadger.com/images/${DOCKER_BUILD}/${MICROBADGER_CODE}"

0
.void
View File

View File

@@ -1,11 +1,8 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE:-alpine}:3.9
ARG QEMU=
ARG BUILD_DATE
ARG VCS_REF
# Only installed for ARM devices
ADD .void ${QEMU}? /usr/bin/
LABEL org.label-schema.schema-version="1.0.0-rc1" \
maintainer="quentin.mcgaw@gmail.com" \
org.label-schema.build-date=$BUILD_DATE \
@@ -67,5 +64,4 @@ RUN chown nonrootuser -R /etc/unbound && \
/etc/unbound/root.hints \
/etc/unbound/root.key \
/etc/unbound/unbound.conf \
/etc/unbound/*.bz2 && \
rm -f /usr/bin/qemu-arm-static /usr/bin/.void
/etc/unbound/*.bz2

View File

@@ -75,8 +75,7 @@
modprobe tun
```
1. **ONLY IF YOU HAVE AN ARM DEVICE, depending on your cpu architecture,** replace `qmcgaw/private-internet-access`
with either `qmcgaw/private-internet-access:armhf` (32 bit) or `qmcgaw/private-internet-access:aarch64` (64 bit).
1. **IF YOU HAVE AN ARM DEVICE, follow the steps** in the [ARM devices section](#arm-devices)
1. Launch the container with:
@@ -248,21 +247,18 @@ services:
## ARM devices
If you want to save 3-5MB on the image (because of QEMU), use the following command on
your ARM device:
- If your architecture is ARMHF (32 bit)
- If your architecture is ARMHF (32 bit), run this on your ARM device:
```sh
docker build -t qmcgaw/private-internet-access:armhf \
docker build -t qmcgaw/private-internet-access \
--build-arg BASE_IMAGE=arm32v6/alpine \
https://github.com/qdm12/private-internet-access-docker.git
```
- If your architecture is AARCH64 (64 bit)
- If your architecture is AARCH64 (64 bit), run this on your ARM device:
```sh
docker build -t qmcgaw/private-internet-access:aarch64 \
docker build -t qmcgaw/private-internet-access \
--build-arg BASE_IMAGE=arm64v8/alpine \
https://github.com/qdm12/private-internet-access-docker.git
```