summaryrefslogtreecommitdiff
path: root/scripts/package-build/podman
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-08-26 15:21:14 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-08-29 09:30:52 +0000
commitcc7d0993b420c3245e628a818f887411d72530ff (patch)
tree53fd8ab2b5dea74c1f7969b8ff853179d81f8fec /scripts/package-build/podman
parent70bb3c5baacb6e0c72b9532f6dda417d395a6bc0 (diff)
downloadvyos-build-cc7d0993b420c3245e628a818f887411d72530ff.tar.gz
vyos-build-cc7d0993b420c3245e628a818f887411d72530ff.zip
T6674: Add build-scrips for packages without Jenkins
Add build scripts for .deb packages without Jenkins. To exclude Jenkins we need some place where we can put new builds-scripts to run in parallel (old/new) during meantime We will deprecate old Jenkins package builds in the future.
Diffstat (limited to 'scripts/package-build/podman')
-rw-r--r--scripts/package-build/podman/.gitignore7
l---------scripts/package-build/podman/build.py1
-rw-r--r--scripts/package-build/podman/package.toml27
3 files changed, 35 insertions, 0 deletions
diff --git a/scripts/package-build/podman/.gitignore b/scripts/package-build/podman/.gitignore
new file mode 100644
index 00000000..22c40b0e
--- /dev/null
+++ b/scripts/package-build/podman/.gitignore
@@ -0,0 +1,7 @@
+podman/
+*.buildinfo
+*.build
+*.changes
+*.deb
+*.dsc
+
diff --git a/scripts/package-build/podman/build.py b/scripts/package-build/podman/build.py
new file mode 120000
index 00000000..3c76af73
--- /dev/null
+++ b/scripts/package-build/podman/build.py
@@ -0,0 +1 @@
+../build.py \ No newline at end of file
diff --git a/scripts/package-build/podman/package.toml b/scripts/package-build/podman/package.toml
new file mode 100644
index 00000000..952af518
--- /dev/null
+++ b/scripts/package-build/podman/package.toml
@@ -0,0 +1,27 @@
+[[packages]]
+name = "podman"
+commit_id = "v4.9.5"
+scm_url = "https://github.com/containers/podman"
+
+#build_cmd = "cd ..; ./build.sh"
+build_cmd = """
+make install.tools
+make podman-release
+
+tar xf podman-release-$(dpkg --print-architecture).tar.gz
+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 --depends libgpgme11 \
+ --depends fuse-overlayfs --depends golang-github-containers-common \
+ --license "Apache License 2.0" -C podman-v$VERSION --package ..
+"""
+
+[packages.dependencies]
+packages = [
+ "libseccomp-dev",
+ "libgpgme-dev"
+]