Files
crawlab/docker/base-image/install/deps/deps.sh
2024-11-24 09:34:35 +08:00

40 lines
1.3 KiB
Bash

#!/bin/bash
# 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 \
# Network and File Transfer Utilities
curl \ # Modern HTTP client
wget \ # Another download utility
# Version Control
git \ # Distributed version control system
# Network Diagnostics and Monitoring
net-tools \ # Traditional networking tools
iputils-ping \ # Tools for testing network connectivity
# Time Synchronization
ntp \ # Network Time Protocol daemon for time sync
ntpdate \ # Client for one-time NTP sync
# Web Server
nginx \ # High-performance HTTP server and reverse proxy
# File Operations
unzip \ # Extract .zip archives
# Security and Encryption
gnupg2 \ # GNU Privacy Guard for encryption and signing
# System Libraries
libc6 # GNU C Library - essential for running C programs