Adding QEMU static arm binary to build ARM images

This commit is contained in:
Quentin McGaw
2019-04-26 16:02:14 +02:00
parent cc36ba5207
commit 99f48b964b
4 changed files with 31 additions and 3 deletions

View File

@@ -75,7 +75,7 @@
modprobe tun
```
1. **IF YOU HAVE AN ARM DEVICE, depending on your cpu architecture:** replace `qmcgaw/private-internet-access`
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. Launch the container with:
@@ -246,6 +246,27 @@ services:
# add more volumes etc.
```
## 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)
```sh
docker build -t qmcgaw/private-internet-access:armhf \
--build-arg BASE_IMAGE=arm32v6/alpine \
https://github.com/qdm12/private-internet-access-docker.git
```
- If your architecture is AARCH64 (64 bit)
```sh
docker build -t qmcgaw/private-internet-access:aarch64 \
--build-arg BASE_IMAGE=arm64v8/alpine \
https://github.com/qdm12/private-internet-access-docker.git
```
## For the paranoids
- You can review the code which essential consits in the [Dockerfile](https://github.com/qdm12/private-internet-access-docker/blob/master/Dockerfile) and [entrypoint.sh](https://github.com/qdm12/private-internet-access-docker/blob/master/entrypoint.sh)