From e9812be02ae1618d0d11b78e03b7824a0bd0129b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Sat, 24 Oct 2020 09:56:21 +0200 Subject: [PATCH] CI tweaks : no more WITH_PYTHON, fix bash syntax --- .ci/build-docker.sh | 4 ++-- .ci/update-env.sh | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.ci/build-docker.sh b/.ci/build-docker.sh index 24c3405e39b..67c55cc35fb 100755 --- a/.ci/build-docker.sh +++ b/.ci/build-docker.sh @@ -26,7 +26,7 @@ docker_build() { # Docker's --cache-from does not really work with multi-stage builds: https://github.com/moby/moby/issues/34715 # So we just have to rely on the local cache. time docker build -f docker/Dockerfile \ ---build-arg "--build-arg "MAKEFLAGS=${MAKEFLAGS}" --build-arg "SAGE_NUM_THREADS=${SAGE_NUM_THREADS}" --build-arg "MAKEFLAGS_DOCBUILD=${MAKEFLAGS}" --build-arg "SAGE_NUM_THREADS_DOCBUILD=${SAGE_NUM_THREADS_DOCBUILD}" --build-arg ARTIFACT_BASE=$ARTIFACT_BASE $@ +--build-arg "MAKEFLAGS=${MAKEFLAGS}" --build-arg "SAGE_NUM_THREADS=${SAGE_NUM_THREADS}" --build-arg "MAKEFLAGS_DOCBUILD=${MAKEFLAGS}" --build-arg "SAGE_NUM_THREADS_DOCBUILD=${SAGE_NUM_THREADS_DOCBUILD}" --build-arg ARTIFACT_BASE=$ARTIFACT_BASE $@ } # We use a multi-stage build /docker/Dockerfile. For the caching to be @@ -53,7 +53,7 @@ docker tag "$DOCKER_IMAGE_CLI" "$DOCKER_IMAGE_BINDER" # Display the layers of this image docker history "$DOCKER_IMAGE_CLI" # Build the developer image with the build artifacts intact. -# Note: It's important to build the dev image last because it might be tagged as ARTIFACT_BASE. +# Note: It is important to build the dev image last because it might be tagged as ARTIFACT_BASE. docker_build --target sagemath-dev --tag "$DOCKER_IMAGE_DEV" . # Display the layers of this image docker history "$DOCKER_IMAGE_DEV" diff --git a/.ci/update-env.sh b/.ci/update-env.sh index fd1900b1a04..652b66f3685 100755 --- a/.ci/update-env.sh +++ b/.ci/update-env.sh @@ -27,8 +27,6 @@ if [ -n "$CI_MONKEY_PATCH" ]; then $SCRIPT fi -WITH_PYTHON=${WITH_PYTHON:-2} - # From the docker documentation: "A tag name must be valid ASCII and may # contain lowercase and uppercase letters, digits, underscores, periods and # dashes. A tag name may not start with a period or a dash and may contain a @@ -38,10 +36,6 @@ export DOCKER_TAG=`echo $DOCKER_TAG | tr -d '[:space:]' | tr -c '[:alnum:]_.-' ' [[ -z "$DOCKER_TAG" ]] && export DOCKER_TAG=none [[ "$DOCKER_TAG" = "master" ]] && export DOCKER_TAG=latest -if [ $WITH_PYTHON = 3 ]; then - export DOCKER_TAG=${DOCKER_TAG}-py3 -fi - export DOCKER_IMAGE_CLI=${DOCKER_NAMESPACE:-sagemath}/sagemath:$DOCKER_TAG export DOCKER_IMAGE_DEV=${DOCKER_NAMESPACE:-sagemath}/sagemath-dev:$DOCKER_TAG