Skip to content

Commit

Permalink
Script: build tools updates (readthedocs#10467)
Browse files Browse the repository at this point in the history
- increase container's sleep time to avoid failing if the compilation takes more
  than 5 minutes

- show `asdf` version at the beginning of the task
  • Loading branch information
humitos committed Jun 26, 2023
1 parent 418980d commit c33708d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/compile_version_upload_s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ set -e # Stop on errors
set -x # Echo commands

# Define variables
SLEEP=350 # Container timeout
SLEEP=900 # Container timeout
OS="${OS:-ubuntu-22.04}" # Docker image name

TOOL=$1
Expand All @@ -72,6 +72,8 @@ 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)"

# Install the tool version requested
if [[ $TOOL == "python" ]]
then
Expand Down

0 comments on commit c33708d

Please sign in to comment.