Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build deb packages #55

Open
DmitriyMurzin opened this issue Dec 3, 2021 · 0 comments
Open

Add build deb packages #55

DmitriyMurzin opened this issue Dec 3, 2021 · 0 comments

Comments

@DmitriyMurzin
Copy link

Add CI for automatically build deb packages, I create in 5 minutes Dockerfile for build deb package with Ubuntu 21.10 and it working! Im
add it for use other users!

git clone https://github.com/max-moser/network-manager-wireguard.git
cd network-manager-wireguard

create Dockerfile:

FROM ubuntu:21.10 as builder
ARG DEBIAN_FRONTEND=noninteractive
RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
RUN apt update && apt install -y wireguard git dh-autoreconf libglib2.0-dev intltool build-essential libgtk-3-dev libnma-dev libsecret-1-dev network-manager-dev resolvconf checkinstall
WORKDIR /build
COPY . .
RUN ./autogen.sh --without-libnm-glib
RUN ./configure --without-libnm-glib --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/NetworkManager --localstatedir=/var
RUN checkinstall --install=no --pkgname=network-manager-wireguard --pkgversion=0.1 --requires=network-manager-gnome,wireguard -D make install
FROM scratch
COPY --from=builder /build/*.deb /

Run:
DOCKER_BUILDKIT=1 docker build -o type=local,dest=packages .
Install:
dpkg -i packages/network-manager-wireguard_0.1-1_amd64.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant