github.com/cilium/cilium@v1.16.2/images/builder/install-builder-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    libelf1
    13    libmnl0
    14    bash-completion
    15    iptables
    16    kmod
    17    ca-certificates
    18  )
    19  
    20  export DEBIAN_FRONTEND=noninteractive
    21  
    22  apt-get update
    23  
    24  # tzdata is one of the dependencies and a timezone must be set
    25  # to avoid interactive prompt when it is being installed
    26  ln -fs /usr/share/zoneinfo/UTC /etc/localtime
    27  
    28  apt-get install -y --no-install-recommends "${packages[@]}"
    29  
    30  apt-get purge --auto-remove
    31  apt-get clean
    32  rm -rf /var/lib/apt/lists/*