Files
crawlab/docker/base-image/install/deps/deps.sh
Marvin Zhang f03b346ba3 feat: enhance Python installation script with requirements handling and dependency updates
- Added jq to the dependencies in the Docker base image installation script.
- Updated the Python installation script to support handling of custom requirements via command-line arguments.
- Implemented a new function to manage requirements installation, falling back to a default requirements file if none is provided.
- Improved version check logic to prevent redundant installations of Python versions, enhancing efficiency in Docker environments.
2024-12-25 15:26:04 +08:00

32 lines
736 B
Bash

#!/bin/bash
# Fail on error
set -e
# Ensure directory mode of /tmp is world-writable (readable, writable, executable by all users)
# This is important for temporary file operations in containerized environments
chmod 777 /tmp
# Update the package index files from the repositories
# This ensures we get the latest versions of packages
apt-get update
# Install common dependencies with detailed explanations
# -y flag means "yes" to all prompts (non-interactive installation)
apt-get install -y \
curl \
wget \
git \
net-tools \
iputils-ping \
ntp \
ntpdate \
nginx \
unzip \
zip \
jq \
gnupg2 \
libc6
# Add source /etc/profile to ~/.bashrc
echo "source /etc/profile" >> ~/.bashrc