CI / changes (push) Successful in 7s
CI / openapi (push) Has been skipped
CI / go (push) Has been skipped
CI / docker-web (push) Has been skipped
CI / docker-bird (push) Successful in 41s
CI / bird2 (push) Successful in 14s
CI / docker-go (push) Failing after 2m5s
Modified the bird build script to install libncurses-dev, ensuring compatibility with the updated build process. Updated the Dockerfile to replace the libreadline8 package with libncurses6, aligning with the new dependency requirements for birdc.
31 lines
978 B
Bash
31 lines
978 B
Bash
#!/bin/sh
|
|
# Сборка BIRD из официального tarball (версия задаётся BIRD_VERSION, по умолчанию 2.14).
|
|
# Запуск от root (Docker) или через sudo на хосте. Префикс установки: /usr/local.
|
|
set -eu
|
|
BIRD_VERSION="${BIRD_VERSION:-2.14}"
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
ca-certificates \
|
|
curl \
|
|
flex \
|
|
bison \
|
|
libncurses-dev
|
|
|
|
cd /tmp
|
|
rm -rf "bird-${BIRD_VERSION}"
|
|
curl -fsSL "https://bird.network.cz/download/bird-${BIRD_VERSION}.tar.gz" | tar xz
|
|
cd "bird-${BIRD_VERSION}"
|
|
# birdc only for non-interactive "show protocols" / configure — без readline в runtime.
|
|
./configure --prefix=/usr/local --enable-client --disable-readline
|
|
make -j"$(nproc)"
|
|
make install
|
|
cd /
|
|
rm -rf "/tmp/bird-${BIRD_VERSION}"
|
|
|
|
apt-get purge -y build-essential flex bison libncurses-dev
|
|
apt-get autoremove -y
|
|
rm -rf /var/lib/apt/lists/*
|