Commit graph

3 commits

Author SHA1 Message Date
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
Rey Tucker
c14ec8d042
host: misc: general docker build improvements (#22)
- new build distinguishers:
  - compiler: gcc or clang
  - buildtype: Release or Debug
  - taggedrelease: NO or YES

- add com.nuand.ci.* labels for image metadata

- create a base image with a pruned checkout, to reduce disk consumption
  and to snapshot the working directory's state at the start of a build
  spree

- add -j$(nproc) to the make invocation

- reorganize Dockerfiles to improve build cache hits

- build.bash: iterate over rel, compiler, and buildtype, for a
  combination of 6 builds per distro version

- build.bash: general restructuring for DRY
2018-04-03 18:21:05 -04:00
Rey Tucker
fba7d40ba6 host: misc: add Dockerfiles for multi-distro test builds (#552)
* host: misc: add Dockerfiles for multi-distro test builds

It is now possible to perform test builds automatically across various
releases of Arch, CentOS, Debian, Fedora, and Ubuntu with:

bash host/mis/docker/build.bash

* host: docker: fix ld.so.conf for centos-7
2018-03-30 14:05:15 -04:00