fix: update bird build script and Dockerfile to include libncurses dependency
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.
This commit is contained in:
Denozordec
2026-05-19 11:10:50 +07:00
parent fefadac1bf
commit 0cb5a7d4cb
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -11,7 +11,8 @@ apt-get install -y --no-install-recommends \
ca-certificates \ ca-certificates \
curl \ curl \
flex \ flex \
bison bison \
libncurses-dev
cd /tmp cd /tmp
rm -rf "bird-${BIRD_VERSION}" rm -rf "bird-${BIRD_VERSION}"
@@ -24,6 +25,6 @@ make install
cd / cd /
rm -rf "/tmp/bird-${BIRD_VERSION}" rm -rf "/tmp/bird-${BIRD_VERSION}"
apt-get purge -y build-essential flex bison apt-get purge -y build-essential flex bison libncurses-dev
apt-get autoremove -y apt-get autoremove -y
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
+2 -2
View File
@@ -46,8 +46,8 @@ EXPOSE 8080
ENTRYPOINT ["/usr/local/bin/evobgp"] ENTRYPOINT ["/usr/local/bin/evobgp"]
FROM runtime AS runtime-birdc FROM runtime AS runtime-birdc
# birdc, собранный с readline, требует libreadline8 в runtime (bookworm). # birdc (--disable-readline) линкуется с ncurses (bookworm: libncurses6).
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends libreadline8 \ && apt-get install -y --no-install-recommends libncurses6 \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY --from=birdc /usr/local/sbin/bird /usr/local/sbin/birdc /usr/local/sbin/ COPY --from=birdc /usr/local/sbin/bird /usr/local/sbin/birdc /usr/local/sbin/