here is a builder for buster:
# build JWT
FROM debian:buster-slim AS jwt
RUN sed -i 's/httpredir/deb/g' /etc/apt/sources.list
# build tools
RUN rm -rf /var/lib/apt/lists/* && \
apt-get update && \
apt-get install --assume-yes gnupg wget git gcc g++ make flex bison autoconf pkg-config libssl-dev unzip libtool check
# libjansson & libjwt
RUN apt-get install --assume-yes libjansson-dev && \
cd /usr/local/src && \
wget https://github.com/benmcollins/libjwt/archive/refs/tags/v1.12.1.zip && \
unzip v1.12.1.zip && \
cd libjwt-1.12.1 && \
autoreconf -i && \
./configure && \
make all && \
make check && \
make install
# kam compile
RUN mkdir -p /usr/local/src/kamailio-5.5 && \
cd /usr/local/src/kamailio-5.5 && \
git clone --depth 1 --no-single-branch https://github.com/kamailio/kamailio kamailio && \
cd kamailio && \
git checkout -b 5.5 origin/5.5 && \
make PREFIX="/usr/local/kamailio-5.5" include_modules="jwt" cfg && \
make Q=0 all && \
make install
# copy files from:
# /usr/local/lib/libjwt.so*
# /usr/local/src/kamailio-5.5/kamailio/src/modules/jwt/jwt.so => /usr/lib/x86_64-linux-gnu/kamailio/modules/
notice no need to copy libjansson, assuming kamailio installed it for other json modules.
e.g. if you do a multi-stage:
COPY --from=jwt /usr/local/lib/libjwt.so* /usr/lib/x86_64-linux-gnu/
COPY --from=jwt /usr/local/src/kamailio-5.5/kamailio/src/modules/jwt/jwt.so /usr/lib/x86_64-linux-gnu/kamailio/modules/
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.