From 0209088d7a774c3f3e33c8c4d03ae5baa4be1cfb Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 11 Oct 2023 12:00:36 +0200 Subject: [PATCH] Script: compile versions for S3 (#10811) Quick fix to allow pre-building `build.tools` versions successfully. See https://app.circleci.com/pipelines/github/readthedocs/readthedocs-docker-images/273/workflows/db4e9204-0b2e-4a1d-aff1-de4e075396da/jobs/478 to understand the issue in deep. --- scripts/compile_version_upload_s3.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/compile_version_upload_s3.sh b/scripts/compile_version_upload_s3.sh index ce3423959a5..18a2b0bdec6 100755 --- a/scripts/compile_version_upload_s3.sh +++ b/scripts/compile_version_upload_s3.sh @@ -72,9 +72,13 @@ 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" +# TODO: uncomment this to show the asdf version on the build output. +# I'm commenting it now because it's failing for some reason and that I'm not able to solve. +# OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "asdf": executable file not found in $PATH: unknown +# # Run "asdf version" from inside the container -echo -n 'asdf version: ' -docker exec --user root $CONTAINER_ID asdf version +# echo -n 'asdf version: ' +# docker exec --user root $CONTAINER_ID asdf version # Install the tool version requested if [[ $TOOL == "python" ]]