Skip to content

Commit d203a73

Browse files
authored
Build tools: run asdf version from inside the container (#10575)
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.
1 parent 93b77dc commit d203a73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/compile_version_upload_s3.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
7272
CONTAINER_ID=$(docker run --user docs --rm --detach --volume ${SCRIPT_DIR}/python-build.diff:/tmp/python-build.diff readthedocs/build:$OS sleep $SLEEP)
7373
echo "Running all the commands in Docker container: $CONTAINER_ID"
7474

75-
echo "asdf version: $(asdf version)"
75+
# Run "asdf version" from inside the container
76+
echo -n 'asdf version: '
77+
docker exec --user root $CONTAINER_ID asdf version
7678

7779
# Install the tool version requested
7880
if [[ $TOOL == "python" ]]

0 commit comments

Comments
 (0)