Page MenuHomeDevCentral

Create Alkane utility
Open, NormalPublic

Description

As sites can be deployed by Jenkins or Salt, the alkane utility will allow:

  • to offer a consistent workflow: both should call alkane (even if afterwards alkane calls CD to build the site)
  • to pull files from CD: no more SSH connection
  • to expose an HTTP API to the private network, so CD can require deployment

Rust seems a good language to create a CLI/HTTP API as we've rLF tailored for this small API role, and as we can handle CLI/HTTP requests in the same codebase.

Event Timeline

dereckson triaged this task as Normal priority.Apr 8 2023, 02:09
dereckson created this task.

Next steps:

  • Write the API specification and publish it on https://docs.nasqueron.org
  • Allow to use standard recipes to avoid symlinks or to always write the same git pull logic

[ Alkane tasks are prioritized to be handled in the next operations sprint. ]

WindRiver has rebooted this morning:

$ usr/local/etc/rc.d/alkane status
alkane is not running.

$ /usr/local/etc/rc.d/alkane start
Starting alkane.
daemon: pidfile ``/var/run/alkane.pid'': Permission denied
/usr/local/etc/rc.d/alkane: WARNING: failed to start alkane

Service needs to take care of touch + chown the pidfile path.