diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-22 22:01:45 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-26 19:10:27 +0000 |
commit | 3b0bc0a9da25a28e6616c7dd2f2da5fa9aac5a80 (patch) | |
tree | d6edac67564566b3f24de927d8b8f45e5bb68015 /packages/podman/build.sh | |
parent | c676a1bb4686a9667be4c168153d6e6d140e7f9d (diff) | |
download | vyos-build-3b0bc0a9da25a28e6616c7dd2f2da5fa9aac5a80.tar.gz vyos-build-3b0bc0a9da25a28e6616c7dd2f2da5fa9aac5a80.zip |
podman: T6598: add custom podman build for version 4.9.5
(cherry picked from commit a9baaaba16124f847911eeceaff3dbf17f397aeb)
Diffstat (limited to 'packages/podman/build.sh')
-rwxr-xr-x | packages/podman/build.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/podman/build.sh b/packages/podman/build.sh new file mode 100755 index 00000000..194a139a --- /dev/null +++ b/packages/podman/build.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -x + +SRC=podman +if [ ! -d $SRC ]; then + echo "source directory $SRC does not exist!" + exit 1 +fi + +sudo apt-get install -y libseccomp-dev libgpgme-dev + +cd $SRC + +echo "I: installing dependencies" +make install.tools +echo "I: building podman" +make podman-release + +tar xf podman-release-$(dpkg --print-architecture).tar.gz +# retrieve version number from podman archive folder: podman-v4.9.5/ +# remove leading podman string +VERSION=$(ls -d podman-v* | cut -c9-) + +fpm --input-type dir --output-type deb --name podman \ + --version $VERSION --deb-compression gz \ + --maintainer "VyOS Package Maintainers <maintainers@vyos.net>" \ + --description "Engine to run OCI-based containers in Pods" \ + --depends conmon --depends crun --depends netavark \ + --license "Apache License 2.0" -C podman-v$VERSION --package .. + |