From 891619457cf114a8cbfdad42de644f4ce6c3c028 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Tue, 31 Dec 2024 15:05:55 +0800 Subject: [PATCH] feat: enhance Docker base image installation scripts - Added 'zip' and 'unzip' utilities to the dependency installation script for improved file handling capabilities. - Updated usage instructions in the Python installation script to include a new 'setup' command for configuring pyenv, enhancing user experience and script functionality. --- docker/base-image/install/deps/deps.sh | 2 ++ docker/base-image/install/python/python.sh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/base-image/install/deps/deps.sh b/docker/base-image/install/deps/deps.sh index 2908aa9e..1143781d 100644 --- a/docker/base-image/install/deps/deps.sh +++ b/docker/base-image/install/deps/deps.sh @@ -13,6 +13,8 @@ apt-get update apt-get install -y \ curl \ wget \ + zip \ + unzip \ git \ iputils-ping \ nginx \ diff --git a/docker/base-image/install/python/python.sh b/docker/base-image/install/python/python.sh index cfc0ad9a..06aa5f90 100644 --- a/docker/base-image/install/python/python.sh +++ b/docker/base-image/install/python/python.sh @@ -7,10 +7,10 @@ set -e print_usage() { echo "Usage: $0 [version] [requirements]" echo "Commands:" - echo " install - Install Python version (default: latest)" + echo " setup - Setup pyenv" + echo " install - Install Python version (default: latest)" echo " uninstall - Uninstall Python version" - echo " switch - Switch to a different Python version" - echo " list - List installed Python versions" + echo " list - List installed Python versions" } # Function to install Python dependencies