diff --git a/src/renku/devcontainer-feature.json b/src/renku/devcontainer-feature.json index 9f57784..e700410 100644 --- a/src/renku/devcontainer-feature.json +++ b/src/renku/devcontainer-feature.json @@ -29,9 +29,6 @@ "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { "packages": "build-essential,bzip2,ca-certificates,curl,gpg-agent,gnupg,libglib2.0-0,libsm6,libxext6,libxrender1,rclone,tini,wget,vim,jq" }, - "ghcr.io/devcontainers/features/python:1": { │ - "version": "3.10" │ - }, "ghcr.io/rocker-org/devcontainer-features/miniforge:1": {}, "ghcr.io/devcontainers/features/git:1": {}, "ghcr.io/devcontainers/features/git-lfs:1": { diff --git a/src/renku/install.sh b/src/renku/install.sh index b2beee2..5ea1466 100644 --- a/src/renku/install.sh +++ b/src/renku/install.sh @@ -4,14 +4,6 @@ set -ex USER_ID=1000 USERNAME=${USERNAME:-${_REMOTE_USER}} -echo "Activating feature Renku" - -VERSION=${VERSION:-"latest"} -if [ "${VERSION}" = "latest" ]; then - VERSION=$(curl -s https://pypi.org/pypi/renku/json | jq '.releases | keys | sort | .[]' | grep -oP "\"[0-9]+\.[0-9]+\.[0-9]\"" | tr -d '"' | sort -rV | head -n 1) -fi -echo "The requested version is: $VERSION" - # create the user if missing if ! id -u "${USERNAME}" >/dev/null 2>&1 && [ "$CREATEUSER" = "true" ]; then useradd -l -m -s /bin/bash -N -u 1000 "${USERNAME}" @@ -23,7 +15,7 @@ if [ "${INSTALLJUPYTER}" = "true" ]; then ln -sf /opt/conda/bin/jupyter-server /opt/conda/bin/jupyter-notebook fi -pip install pipx -pipx install renku==${VERSION} +# install the renku CLI +curl -sfSL https://raw.githubusercontent.com/SwissDataScienceCenter/renku-cli/main/install.sh | bash -s -- -t nightly chown -R ${USERNAME} /usr/local/py-utils diff --git a/test/renku/renku-base-notebook.sh b/test/renku/renku-base-notebook.sh index 026f5ec..a63df06 100644 --- a/test/renku/renku-base-notebook.sh +++ b/test/renku/renku-base-notebook.sh @@ -7,7 +7,7 @@ source dev-container-features-test-lib # Feature-specific tests # The 'check' command comes from the dev-container-features-test-lib. -check "renku is available" bash -c "renku --help" +check "renku is available" bash -c "rnk --help" check "git-lfs is available" bash -c "git lfs --help" check "conda is available" bash -c "conda --version" check "/opt/conda/bin is on PATH" bash -c "grep -q '/opt/conda/bin' <<< '$PATH'" diff --git a/test/renku/renku-ubuntu-jovyan.sh b/test/renku/renku-ubuntu-jovyan.sh index 026f5ec..a63df06 100644 --- a/test/renku/renku-ubuntu-jovyan.sh +++ b/test/renku/renku-ubuntu-jovyan.sh @@ -7,7 +7,7 @@ source dev-container-features-test-lib # Feature-specific tests # The 'check' command comes from the dev-container-features-test-lib. -check "renku is available" bash -c "renku --help" +check "renku is available" bash -c "rnk --help" check "git-lfs is available" bash -c "git lfs --help" check "conda is available" bash -c "conda --version" check "/opt/conda/bin is on PATH" bash -c "grep -q '/opt/conda/bin' <<< '$PATH'" diff --git a/test/renku/renku-ubuntu-randomUser.sh b/test/renku/renku-ubuntu-randomUser.sh index 1fb57b5..b456ccb 100644 --- a/test/renku/renku-ubuntu-randomUser.sh +++ b/test/renku/renku-ubuntu-randomUser.sh @@ -7,7 +7,7 @@ source dev-container-features-test-lib # Feature-specific tests # The 'check' command comes from the dev-container-features-test-lib. -check "renku is available" bash -c "renku --help" +check "renku is available" bash -c "rnk --help" check "git-lfs is available" bash -c "git lfs --help" check "conda is available" bash -c "conda --version" check "/opt/conda/bin is on PATH" bash -c "grep -q '/opt/conda/bin' <<< '$PATH'" diff --git a/test/renku/renku.sh b/test/renku/renku.sh index 950574e..01a0bd3 100644 --- a/test/renku/renku.sh +++ b/test/renku/renku.sh @@ -7,7 +7,7 @@ source dev-container-features-test-lib # Feature-specific tests # The 'check' command comes from the dev-container-features-test-lib. -check "renku is installed" bash -c "renku | grep 'Check common Renku commands'" +check "renku is installed" bash -c "rnk 2> >(grep 'This is the command line interface to the Renku platform')" # Report results # If any of the checks above exited with a non-zero exit code, the test will fail. diff --git a/test/renku/test.sh b/test/renku/test.sh index 6ef4225..14b518e 100644 --- a/test/renku/test.sh +++ b/test/renku/test.sh @@ -10,7 +10,7 @@ source dev-container-features-test-lib # Feature-specific tests # The 'check' command comes from the dev-container-features-test-lib. Syntax is... # check