github.com/cilium/cilium@v1.16.2/images/runtime/install-runtime-deps.sh (about) 1 #!/usr/bin/env bash 2 3 # Copyright Authors of Cilium 4 # SPDX-License-Identifier: Apache-2.0 5 6 set -o xtrace 7 set -o errexit 8 set -o pipefail 9 set -o nounset 10 11 packages=( 12 # Bash completion for Cilium 13 bash-completion 14 # Additional misc runtime dependencies 15 iproute2 16 iptables 17 ipset 18 kmod 19 ca-certificates 20 ) 21 22 export DEBIAN_FRONTEND=noninteractive 23 24 apt-get update 25 26 # tzdata is one of the dependencies and a timezone must be set 27 # to avoid interactive prompt when it is being installed 28 ln -fs /usr/share/zoneinfo/UTC /etc/localtime 29 30 apt-get install -y --no-install-recommends "${packages[@]}" 31 32 apt-get purge --auto-remove 33 apt-get clean 34 rm -rf /var/lib/apt/lists/*