Skip to content
Snippets Groups Projects
Commit 80bb7b17 authored by Louis Maillard's avatar Louis Maillard
Browse files

pkg-ubuntu: add build pipeline Ubuntu 22.04, 24.04

This commit add necessary files for building debian .deb package and
shell script to build for Ubuntu 22.04 and 24.04. You can use it by
running `extras/packaging/build_packages.sh` script.

Change-Id: I91ba97cbe932ff4207072dcb2f9d2b2887de236a
parent 2da6725e
Branches
No related tags found
No related merge requests found
FROM ubuntu:24.04
WORKDIR /build
ARG PKG_NAME
ENV EMAIL="contact@savoirfairelinux.com"
ENV DEBFULLNAME="Savoir-faire Linux"
RUN apt-get update && \
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
apt-get install -y \
dialog apt-utils make devscripts build-essential debmake lintian \
&& apt-get clean && \
mkdir -p /build/debs
RUN apt-get update && apt-get install -y \
build-essential pkg-config cmake dpkg-dev gcc g++ git wget \
libtool autotools-dev autoconf automake sbuild autopkgtest debhelper debhelper-compat \
cython3 python3-dev python3-setuptools python3-build python3-virtualenv \
libncurses5-dev libreadline-dev nettle-dev libcppunit-dev \
libgnutls28-dev libuv1-dev libjsoncpp-dev libargon2-dev libunistring-dev \
libssl-dev libfmt-dev libasio-dev libmsgpack-dev libyaml-cpp-dev \
systemd \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
COPY ${PKG_NAME}.tar.gz /build/
CMD tar -xzf ${PKG_NAME}.tar.gz && \
cd ${PKG_NAME} && \
debmake -b "dhtnet:bin" -y && \
debuild && \
cd .. && \
rm -Rf ${PKG_NAME} ${PKG_NAME}.tar.gz && \
cp /build/*.deb /build/debs/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment