Add Dockerfile and build script; update .gitignore and installation paths

This commit is contained in:
2026-05-27 07:58:24 +02:00
parent 0b36f71394
commit 079edee6e6
6 changed files with 27 additions and 2 deletions
+1
View File
@@ -1 +1,2 @@
*.deb
out
+16
View File
@@ -0,0 +1,16 @@
ARG UBUNTU_VERSION=24.04
FROM ubuntu:${UBUNTU_VERSION}
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
dpkg-dev \
debhelper \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build
COPY . src/
RUN cd src && dpkg-buildpackage -us -uc -b \
&& mkdir /out \
&& find /build -maxdepth 1 \( -name '*.deb' -o -name '*.buildinfo' -o -name '*.changes' \) \
-exec mv {} /out/ \;
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
mkdir -p out
container build -t cloud-router-builder "$@" .
echo "Build artifacts written to out/"
+1 -1
View File
@@ -2,7 +2,7 @@ Source: cloud-router
Section: net
Priority: optional
Maintainer: Sławomir Koszewski <slawek@koszewscy.waw.pl>
Build-Depends: debhelper-compat (= 14)
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.6.2
Rules-Requires-Root: no
+1 -1
View File
@@ -1,4 +1,4 @@
src/etc/sysctl.d/99-cloud-router.conf etc/sysctl.d/
src/usr/local/sbin/simple-ca usr/local/sbin/
src/opt/cloud-router/bin/simple-ca opt/cloud-router/bin/
src/usr/lib/cloud-router/configure usr/lib/cloud-router/
src/usr/share/cloud-router/templates/* usr/share/cloud-router/templates/