File size: 633 Bytes
158c80a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/usr/bin/env bash
#
# On-demand installer for basic CLI tooling inside the lean container.
set -euo pipefail
if [[ "$(id -u)" -ne 0 ]]; then
echo "bootstrap-shell must run as root (use docker exec -u 0 ...)" >&2
exit 1
fi
echo "Updating package index and installing debugging helpers..."
apk add --no-cache \
bash \
bind-tools \
curl \
iproute2 \
iputils \
jq \
less \
net-tools \
procps-ng \
vim \
wget
cat <<'EOM'
Done. Common debugging tools are now available in this container.
- bash, vim, less
- curl, wget, jq
- iproute2, iputils, net-tools, bind-tools, procps-ng
EOM
|