forked from containers/conmon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fpf: Add instructions on how to build a package
Add instructions on how to build an Ubuntu Jammy package for `conmon`. Also, add an explanation of why does FPF needs to create an Ubuntu Jammy package for this project Refs freedomofpress/dangerzone#685
- Loading branch information
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM ubuntu:jammy | ||
|
||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ | ||
dpkg-dev debhelper-compat go-md2man golang-go \ | ||
libglib2.0-dev libseccomp-dev libsystemd-dev | ||
|
||
RUN mkdir -p /builder/conmon | ||
|
||
WORKDIR /builder/conmon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Background | ||
|
||
The purpose of this repo is to build an Ubuntu Jammy package for `conmon`, that | ||
contains a fix that is necessary for Dangerzone to function. For more details, | ||
see https://github.com/freedomofpress/dangerzone/issues/685. | ||
|
||
## Build instructions | ||
|
||
You can build conmon by changing into this directory and running `./build.sh`. | ||
This script should be an Ubuntu Jammy container image, with all the necessary | ||
build dependencies in order to produce a `conmon` Debian package for Ubuntu | ||
Jammy. The `.deb` files will be copied in this directory. | ||
|
||
If you prefer Podman, you can use `./build.sh podman` instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
GIT_ROOT=$(git rev-parse --show-toplevel) | ||
RUNTIME=${1:-docker} | ||
|
||
$RUNTIME build --pull -t fpf/builder-conmon . | ||
$RUNTIME run --rm -v ${GIT_ROOT}:/builder/conmon \ | ||
fpf/builder-conmon sh -c 'dpkg-buildpackage -b && mv ../conmon_*\.deb fpf/' | ||
|
||
set +x | ||
|
||
echo "Debian package built successfully. You can find it under:" | ||
ls -l ${GIT_ROOT}/fpf/conmon* |