mbecker20 / komodo

🦎 a tool to build and deploy software on many servers 🦎
https://komo.do
GNU General Public License v3.0
1.74k stars 34 forks source link

Failed Periphery install via script on Alpine #66

Open Nonobis opened 1 month ago

Nonobis commented 1 month ago

Hello,

First great project and beautiful .. hope i can now at least drop portainer :)

i have found an bug in trying to install "Periphery " with the script, the script is not working on alpine

Environnement :

LXC container en proxmox based on Alpine (created with Proxmox Ve Helper)

Error :

bagetter:/tmp# komodo
-sh: komodo: not found
bagetter:/tmp# komodosystemctl status periphery
-sh: komodosystemctl: not found
bagetter:/tmp# systemctl status periphery
-sh: systemctl: not found
bagetter:/tmp# curl -sSL https://raw.githubusercontent.com/mbecker20/komodo/main/scripts/setup-periphery.py | python3
=====================
 PERIPHERY INSTALLER
=====================
version: v1.14.0
user install: False
bin dir: /usr/local/bin
config dir: /etc/komodo
service file dir: /etc/systemd/system
/bin/sh: systemctl: not found

config already exists, skipping...
service file already exists, skipping...
starting periphery...
/bin/sh: systemctl: not found

Finished periphery setup.

Note. Use "systemctl status periphery" to make sure periphery is running
Note. Use "systemctl enable periphery" to have periphery start on system boot

-sh: bagetter:/tmp#: not found
bagetter:/tmp# -sh: komodosystemctl: not found
-sh: -sh:: not found
bagetter:/tmp# bagetter:/tmp# systemctl status periphery
-sh: bagetter:/tmp#: not found
bagetter:/tmp# -sh: systemctl: not found
-sh: -sh:: not found
mbecker20 commented 1 month ago

Right, the installer requires systemd, which is included in Debian, fedora, Ubuntu, opensuse, and many other distro. But not alpine. The periphery container should work though, see the docs.

Or you can download the periphery binary from the latest release, and use the process manager alpine uses instead of systemd. Not too familiar with alpine for more specifics though.

mbecker20 commented 1 month ago

Maybe someone would be familiar with packaging the binary for alpine distribution.