bladeRF/host/misc/docker
Rey Tucker 92a9e6bf12 host: docker: build optimization, add automated test script (#37)
* host: docker: clean up the base build process a bit

* host: docker: reduce build context size

We don't need the entire tree (since the _base image has that), so we
can just build from the same dir as the Dockerfile and not transfer
everything to the daemon over and over again.

* host: docker: WIP: script for automated Dockerized testing

* host: docker: use git clean when building base image

* host: docker: add script to automatically freshen base images

* host: docker: auto-detect build dir when testing

* host: docker: build arg for make -j parameter

* host: docker: refactor build script

* host: docker: add parallel run script

* host: docker: adjust make -j settings for builds

* host: docker: test: WIP commit

* host: docker: add usb product check, rfic loopback only for micros

* host: docker: copy the FPGA images from the base
2018-05-22 13:00:21 -04:00
..
_base.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
archlinux.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
build.bash host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
centos-7.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
clang-scan.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
debian-jessie.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
debian-stretch.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
fedora-latest.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
freshen.bash host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
parallel.bash host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
README.md host: misc: add Dockerfiles for multi-distro test builds (#552) 2018-03-30 14:05:15 -04:00
test.bash host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
ubuntu-artful.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
ubuntu-bionic.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
ubuntu-trusty.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00
ubuntu-xenial.Dockerfile host: docker: build optimization, add automated test script (#37) 2018-05-22 13:00:21 -04:00

Dockerfiles for various OS environments

This directory contains Dockerfiles for building libbladeRF and associated utilities under various operating systems, primarily as a means to ensure it builds properly across a variety of OSes.

Currently, the following operating systems are supported:

  • Linux
  • Arch Linux
  • CentOS
    • 7
  • Debian
    • Jessie (8.x)
    • Stretch (9.x)
  • Fedora
  • Ubuntu
    • Trusty (14.04)
    • Xenial (16.04)
    • Artful (17.10)
    • Bionic (18.04)

Building

Build a Docker image from the root of the Nuand/bladeRF checkout:

docker build -f host/misc/docker/archlinux.Dockerfile .

Optionally, add a -t option to tag the image:

docker build -f host/misc/docker/archlinux.Dockerfile \
             -t nuand/bladerf-buildenv:archlinux .

Running

For a quick test to ensure the build was successful, try:

docker run --rm -t nuand/bladerf-buildenv:archlinux bladeRF-cli --version

At this time, actually using a bladeRF device is not supported, although it would be really useful.

Future goals

  • More distribution support
  • FreeBSD
  • clang builds
  • Hardware access