mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-07 21:30:36 -05:00
[PR #1041] [MERGED] Add podman support to the installer #2418
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1041
Author: @wayneyaoo
Created: 7/9/2025
Status: ✅ Merged
Merged: 7/23/2025
Merged by: @oschwartz10612
Base:
main← Head:feature/podman-installer📝 Commits (7)
e0cf091Add a few targets to the Makefile to ease local development607b168Use explicity FQDN image path because Podman by default doesn't have unqualified-search, and we don't bother configuring it for users. Being explicit is also a good practicee83e8c2Add podman support to the installer.515a621Merge branch 'feature/podman-installer' of github.com:wayneyaoo/pangolin into wayneyaoo-feature/podman-installer3426752Add type & capc484e98Merge branch 'fosrl:main' into feature/podman-installer4443ddaFix a bug that error check prevents port configuration📊 Changes
6 files changed (+201 additions, -67 deletions)
View changed files
📝
install/Makefile(+15 -2)📝
install/config/crowdsec/docker-compose.yml(+1 -1)📝
install/config/docker-compose.yml(+3 -3)📝
install/crowdsec.go(+6 -6)📝
install/input.txt(+1 -0)📝
install/main.go(+175 -55)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
The change primarily adds support for podman installation within the installer. The installer will prompt for selection between docker (the default) and podman.
A few points to notice:
docker.ioto the compose template file. This is because for freshly installed podman, it needs to add an entry to theregisteries.confso that image short name resolves. But I don't think editing this on behalf of people makes a lot of sense, so I resort to use explicit full name in the image entry. This has benefit to docker too because explicitness is still better than being implicit.How to test?
Spin up a Debian/Ubtuntu machine and manually install podman and podman-compose, then run the installer.
For some reason, Debian 12 default podman and podman-compose's versions are too old and they have problem processing the
docker-compose.yml. I believe this is version-specific, not distro-specific. We should specify to use newer versions (>= v5.5.2 of podman, >= 1.4.1 podman-compose). Otherwise it'll appear as pangolin installation being broken which is not the case.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.