From 08671bd96c84d1619bd08fe5373fe7c343e6a4ae Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Thu, 27 Jul 2023 10:40:15 +0200 Subject: [PATCH] Build tools: run `asdf version` from inside the container It was running it from the host and failing on CircleCI because it's not installed there. Also, when running it locally it was showing the asdf version from the host instead from the container, where we are compiling these versions. --- scripts/compile_version_upload_s3.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/compile_version_upload_s3.sh b/scripts/compile_version_upload_s3.sh index de9c7334068..ce3423959a5 100755 --- a/scripts/compile_version_upload_s3.sh +++ b/scripts/compile_version_upload_s3.sh @@ -72,7 +72,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" CONTAINER_ID=$(docker run --user docs --rm --detach --volume ${SCRIPT_DIR}/python-build.diff:/tmp/python-build.diff readthedocs/build:$OS sleep $SLEEP) echo "Running all the commands in Docker container: $CONTAINER_ID" -echo "asdf version: $(asdf version)" +# Run "asdf version" from inside the container +echo -n 'asdf version: ' +docker exec --user root $CONTAINER_ID asdf version # Install the tool version requested if [[ $TOOL == "python" ]]