Add Dockerfile and build script; update .gitignore and installation paths
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
*.deb
|
*.deb
|
||||||
|
out
|
||||||
|
|||||||
+16
@@ -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/ \;
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir -p out
|
||||||
|
|
||||||
|
container build -t cloud-router-builder "$@" .
|
||||||
|
|
||||||
|
echo "Build artifacts written to out/"
|
||||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ Source: cloud-router
|
|||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Sławomir Koszewski <slawek@koszewscy.waw.pl>
|
Maintainer: Sławomir Koszewski <slawek@koszewscy.waw.pl>
|
||||||
Build-Depends: debhelper-compat (= 14)
|
Build-Depends: debhelper-compat (= 13)
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.6.2
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
src/etc/sysctl.d/99-cloud-router.conf etc/sysctl.d/
|
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/lib/cloud-router/configure usr/lib/cloud-router/
|
||||||
src/usr/share/cloud-router/templates/* usr/share/cloud-router/templates/
|
src/usr/share/cloud-router/templates/* usr/share/cloud-router/templates/
|
||||||
|
|||||||
Reference in New Issue
Block a user