Sign inSign up

piersfinlayson/build

By piersfinlayson

Updated over 4 years ago

An x86-64 and ARMv6+ (raspberry pi zero onwards) build container suporting C, C++ and Rust.

Image
0

10K+

piersfinlayson/build repository overview

This container provides build tools to allow cross compilation from and to x86-64, ARMv7l (Raspberry Pi) and ARMv6l (Raspberry Pi Zero), for glibc and musl-libc targets.

The container supports

  • native C builds, including cmake support
  • native rust builds
  • cross-compilation of C and rust to x86-64, armv7l and armv6l, both using GNU and MUSL libc.

The x86-64 container uses Ubuntu 18.04 as the base, the ARM container uses Raspbian Jesse.

All containers are otherwise identical with the exception of:

  • the ARM container does not support the Rust Clippy tool (which doesn't currently build on ARM).

Current versions of the tools are:

Container version 0.3.0 OpenSSL version 1.1.1d rustc 1.41.0 (5e1a79984 2020-01-27) MUSL version 1.1.24 MUSL GCC version 9.2.0

This is actually a manifest pointing at

  • build-amd64
  • build-armv7l
  • build-armv6l

It therefore supports all x86-64 machines, and the ARMv6 and ARMv7 Raspberry Pi variants, including the Zero.

To use the container you need to map a local (host) volume to /home/build/builds. E.g. to get a bash shell:

docker run --rm -ti -v ~/builds:/home/build/builds piersfinlayson/build

The Dockerfile used to build the containers and update the manifest can be found here.

Tag summary

Content type

Image

Digest

Size

1.6 GB

Last updated

over 4 years ago

docker pull piersfinlayson/build