Set artful as default Ubuntu for robot/qemu
While setting up a new system for CI, it was found that ubuntu:latest
now points to 18.04. There are issues with pip and ubuntu 18.04. There
are some workarounds but lets wait for the bugs to settle before doing
too much work here.
Here are some references on this issue:
https://github.com/pypa/pipenv/issues/2122
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1772746
Testing: Verified this now builds correctly on old and new systems
Change-Id: Ifed8b460f3df14aec7ba8f566291af87803c1e26
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/scripts/build-qemu-robot-docker.sh b/scripts/build-qemu-robot-docker.sh
index d14b25a..63d0b56 100755
--- a/scripts/build-qemu-robot-docker.sh
+++ b/scripts/build-qemu-robot-docker.sh
@@ -5,10 +5,13 @@
# Parameters:
# parm1: <optional, the name of the docker image to generate>
# default is openbmc/ubuntu-robot-qemu
+# param2: <optional, the distro to build a docker image against>
+# default is ubuntu:artful
set -uo pipefail
DOCKER_IMG_NAME=${1:-"openbmc/ubuntu-robot-qemu"}
+DISTRO=${2:-"ubuntu:artful"}
# Determine our architecture, ppc64le or the other one
if [ $(uname -m) == "ppc64le" ]; then
@@ -20,7 +23,7 @@
################################# docker img # #################################
# Create docker image that can run QEMU and Robot Tests
Dockerfile=$(cat << EOF
-FROM ${DOCKER_BASE}ubuntu:latest
+FROM ${DOCKER_BASE}${DISTRO}
ENV DEBIAN_FRONTEND noninteractive