From 844db67a91fabfcf7ca8ec55aeb3a700ab1b6168 Mon Sep 17 00:00:00 2001
From: Martin Chacon Piza <martin@chaconpiza.com>
Date: Mon, 7 Jun 2021 16:44:07 +0200
Subject: [PATCH] Fix Docker build

The default nodeset was just changed to focal [1], which in the absence
of the python-is-python3 package doesn't provide a python binary.

[1] https://review.opendev.org/c/opendev/base-jobs/+/789098

Change-Id: I43e86ff631034bc6b35fedbc30b72282b5d3b7c8
---
 docker/build_base_image.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/build_base_image.sh b/docker/build_base_image.sh
index 0c37793a..3b112c30 100755
--- a/docker/build_base_image.sh
+++ b/docker/build_base_image.sh
@@ -3,7 +3,7 @@
 set -x  # Print each script step.
 set -eo pipefail  # Exit the script if any statement returns error.
 
-REAL_PATH=$(python -c "import os,sys;print(os.path.realpath('$0'))")
+REAL_PATH=$(python3 -c "import os,sys;print(os.path.realpath('$0'))")
 cd "$(dirname "$REAL_PATH")/../docker/"
 
 BASE_GIT_COMMIT=$(git rev-parse --verify HEAD)