Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ietf-tools/datatracker-app-base:20260827T1454
FROM ghcr.io/ietf-tools/datatracker-app-base:20260902T2330
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"

ENV DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion dev/build/TARGET_BASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20260827T1454
20260902T2330
36 changes: 35 additions & 1 deletion docker/base.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
FROM debian:trixie AS builder

# Update to the desired release tag
ARG LIBYANG_TAG=v5.8.6

# Build-time dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
cmake \
build-essential \
pkg-config \
ca-certificates \
libpcre2-dev \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /src
RUN git clone --branch ${LIBYANG_TAG} --depth 1 \
https://github.com/CESNET/libyang.git libyang

WORKDIR /src/libyang/build
RUN cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/libyang \
-DBUILD_SHARED_LIBS=ON \
.. \
&& make -j"$(nproc)" \
&& make install

FROM python:3.12-trixie
LABEL maintainer="IETF Tools Team <tools-discuss@ietf.org>"

Expand All @@ -9,6 +37,13 @@ RUN apt-get update \
&& apt-get -qy upgrade \
&& apt-get -y install --no-install-recommends dialog 2>&1

COPY --from=builder /opt/libyang /opt/libyang

RUN echo /opt/libyang/lib > /etc/ld.so.conf.d/libyang.conf \
&& ldconfig \
&& ln -s /opt/libyang/bin/yanglint /usr/bin/yanglint \
&& ln -s /opt/libyang/bin/yangre /usr/bin/yangre

# Add Node.js Source
RUN apt-get install -y --no-install-recommends ca-certificates curl gnupg \
&& mkdir -p /etc/apt/keyrings \
Expand Down Expand Up @@ -59,7 +94,6 @@ RUN apt-get update --fix-missing && apt-get install -qy --no-install-recommends
libmagic-dev \
libmariadb-dev \
libmemcached-tools \
libyang3-tools \
locales \
make \
mariadb-client \
Expand Down