util/docker: Update coreboot-sdk consolidate coreboot build
commitebeec5aed3cd2c5b1d68bf139385a96fe6795abc
authorMartin Roth <martin@coreboot.org>
Sun, 25 Oct 2020 21:16:00 +0000 (25 15:16 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 27 Oct 2020 10:07:20 +0000 (27 10:07 +0000)
tree7c3ccb18f9b70f8aa639470aedb5da15d104274d
parentb86d2b09354a5a27dec0e73221ca7b4c794976bd
util/docker: Update coreboot-sdk consolidate coreboot build

Because docker saves a container for every run command, by breaking
the coreboot build into 3 commands, it greatly increased the size of
the docker containers needed.  When combined as one run command, the
coreboot repo that is downloaded, along with the coreboot test build
are deleted before the container is created.  Since those directories
are deleted in a later run command, they don't even make it into the
final container, and just force coreboot-sdk users to download extra
data for no reason.

While splitting the build may help with debugging failures when
creating the docker container, that debugging can be done locally by
splitting up a working copy.

Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: Ia28ee4e22c0a76dc45343755c45678795308adca
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46801
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
util/docker/coreboot-sdk/Dockerfile