build: ISO refactor, use docker, enable cache 35/18435/10
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 9 Aug 2016 16:40:22 +0000 (18:40 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 19 Aug 2016 15:26:48 +0000 (17:26 +0200)
commitec307077e542fd290701a871fedc7f58db37712c
tree2be475e78a5b3493f70463d6f48147bbb46814e6
parentb340f0cbf6841133288178ed764baa93f93ac3fc
build: ISO refactor, use docker, enable cache

Previously, Armband Makefile used to call Fuel@OPNFV Makefile
target <iso>, instead of <all>, which resulted in bypassing
using Docker for ISO building completely.

Switch to <all> Makefile target, hence bringing back Docker
as a build container.

This change justifies moving make variables to a separate spec
file, armband.mk.

While at it, enable caching of builds.
This requires Jenkins bash scripts to be updated for the ISO
build job, done in [1].

JIRA: ARMBAND-56

[1] https://gerrit.opnfv.org/gerrit/#/c/18453/

CHANGES:
- all: release (was all: build)
- Common make targets now depend on submodules-init;
- clean-build and clean-docker make targets have been replaced by:
  make clean, make deepclean;

FIXME: These issues should be fixed later:
- (optional) trim local repo paths from gitinfo files
- only account for armband submodules in cache fingerprints;
- identify size mismatch culprit

Change-Id: I7d73409be44983fa21d4c09d2e07b87a33231e03
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
.gitignore
Makefile
ci/build.sh
patches/opnfv-fuel/0036-repo-mirror-Allow-multi-arch-local-mirrors.patch
patches/opnfv-fuel/0041-build-Allow-PLUGINS-override.patch [new file with mode: 0644]
patches/opnfv-fuel/0042-build-Allow-MIRROR_MOS_UBUNTU-override.patch [new file with mode: 0644]
patches/opnfv-fuel/0043-build-Add-armband.mk-config.patch [new file with mode: 0644]
patches/opnfv-fuel/0044-build-cache-Allow-LOCAL_CACHE_ARCH_NAME-override.patch [new file with mode: 0644]
patches/opnfv-fuel/0045-build-cache-Consider-UBUNTU_ARCH-in-.cacheid.patch [new file with mode: 0644]
patches/opnfv-fuel/0046-build-Use-OPNFV_GIT_SHA-for-ISO-preparer-ID.patch [new file with mode: 0644]
patches/opnfv-fuel/0047-build-ubuntu-mirror-blacklist-ftp.acc.umu.se.patch [new file with mode: 0644]