Running peach-web for luandro's balena deployment #133

Open
opened 2022-07-28 13:28:30 +00:00 by notplants · 2 comments
Owner

in order to do this, we need to get peach-web to run within a docker container that is also running go-sbot.

today, I got one version of this working, but its still a WIP.

I have learned that supervisord is not recommended to use with yunohost (https://forum.yunohost.org/t/yunohost-package-with-supervisord/20384) and that systemd is not recommended to use with docker.

In this branch I created a version of peach-web which uses a config flag "SYSTEM_MANAGER" (set to either "systemd" or "supervisord"), which makes the correct calls appropriately based on this configuration.

I've got this working except for a few things which are in systemd and seem to be missing from supervisord:

  • an easy way to set "start at boot" (not even really sure what this means in the context of docker... I feel like in docker the assumption should be "start at boot")
  • getting the memory usage of go-sbot (not yet clear to me how to do this with supervisorctl)
  • still need to parse uptime (this is available in supervisorctl, but I haven't parsed it yet)

alternatively, we could use initv, which might make the code simpler, since we coudl use initv on debian, in yunohost and in docker, but its a bit more unwieldy to work with than systemd or supervisord.

I'm happy that the branch I made provides a working version though that could be used.

in order to do this, we need to get peach-web to run within a docker container that is also running go-sbot. today, I got one version of this working, but its still a WIP. I have learned that supervisord is not recommended to use with yunohost (https://forum.yunohost.org/t/yunohost-package-with-supervisord/20384) and that systemd is not recommended to use with docker. In [this branch](https://git.coopcloud.tech/PeachCloud/peach-workspace/src/branch/supervisorctl) I created a version of peach-web which uses a config flag "SYSTEM_MANAGER" (set to either "systemd" or "supervisord"), which makes the correct calls appropriately based on this configuration. I've got this working except for a few things which are in systemd and seem to be missing from supervisord: - an easy way to set "start at boot" (not even really sure what this means in the context of docker... I feel like in docker the assumption should be "start at boot") - getting the memory usage of go-sbot (not yet clear to me how to do this with supervisorctl) - still need to parse uptime (this is available in supervisorctl, but I haven't parsed it yet) alternatively, we could use initv, which might make the code simpler, since we coudl use initv on debian, in yunohost and in docker, but its a bit more unwieldy to work with than systemd or supervisord. I'm happy that the branch I made provides a working version though that could be used.
Author
Owner

and here is the PR with the dockerfile I've been working on
https://gitlab.com/coletivo-coolab/ssb-go-pub/-/merge_requests/1/diffs

and here is the PR with the dockerfile I've been working on https://gitlab.com/coletivo-coolab/ssb-go-pub/-/merge_requests/1/diffs

Amazing stuff, opened up https://github.com/ssbc/go-ssb/issues/210 for tracking an upstream image.

Amazing stuff, opened up https://github.com/ssbc/go-ssb/issues/210 for tracking an upstream image.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PeachCloud/peach-workspace#133
No description provided.