Skip to content

Commit

Permalink
Script: compile versions for S3 (#10811)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
humitos authored Oct 11, 2023
1 parent d9fa3cf commit 0209088
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/compile_version_upload_s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
Expand Down

0 comments on commit 0209088

Please sign in to comment.