-
-
Notifications
You must be signed in to change notification settings - Fork 78
alpine instructions #122
Comments
Hi, thank you for providing these information. I believe it would be helpful for people using alpine. I will create a new wiki page and link it to here later. However, out of curiosity, could you let me know that what error will occur if just following the instructions provided in README.md? |
I was gonna complain about "running as root is fine" but seems you edited it out :P It's not fine even in a container really and should preferably be modified if included in the wiki. Since I happened to look in the wiki doesn't the systemd script here run as root too? https://github.com/azlux/botamusique/wiki/Run-botamusique-as-a-daemon-In-the-background 🤔 |
@TerryGeng Mainly why they will fail is the required dependencies probably (for building some of the Python libraries like opuslib, and ffmpeg of course). But that's a given for any distro not just Alpine. Don't really see much other issue myself... So it could in theory just be included in parts? OpenRC in daemon wiki page and have a wiki page for verified minimal package requirements for different distros. |
sorry for the delay, i don't get any web or mail notifications from github. regarding root, i guess it should use another user... but theres nothing else running in the container, so personally i don't care much. i created a new container to show the errors if one follows the README.md instructions. its lxd with alpine 3.11. as @Lartza said, its because of missing dependencies, but not related to ffmpeg or opus, since those are already provided as binaries by the system's package manager and don't need to be compiled. "Installation" section from README.mdthe "Dependencies" section demands the main and only real issue with the installation process is the last this time i followed the instructions exactly as they appear on the readme, and documented/fixed errors as they appeared. note: since i skipped the manual dealing with Pillowzlib and jpeg
fix: install compiler
fix: install Python.h
fix: install limits.h
fix: install running the botafter installing the dependencies successfully, running the bot results in a crash:
fix: install conclusionon top of the obvious packages:
a lot of undocumented packages are needed:
|
Thanks for explaining for us. I think your experience and solution is valuable, and I agree that @azlux and I can add your solution ( |
Done. See the Known issues part in the readme. https://github.com/azlux/botamusique/blob/master/README.md |
the instructions for getting the bot to run on alpine are really lacking. i can't edit the wiki so i figured i'd complain on an issue.
im successfully running the bot on a fresh alpine container. the following dependencies were installed:
i installed Pillow separately (for no good reason)
these are the exact commands i used:
additionally, i've created an openrc service:
with the following content:
i believe the last three lines are not needed. in fact, i encourage others to remove them.
warning: it runs as root.
The text was updated successfully, but these errors were encountered: