coreapp: make, deploy and test apps on the Core in the VM
Apps are folders in Federated Core's generic services format (service, docker-compose.yml.in, env.in, install, uninstall, icon.png) plus their own Dockerfile. coreapp new scaffolds one from templates/app with an address in 192.168.200.x; deploy builds the image, copies it to the Core over SSH, installs it with installapp (and starts it, since the Core's start only knows its own apps) or updates it keeping .env; check, status, logs, shell and remove work on the Core. Apps in development aren't registered with Federated's monitoring: deploy drops MONITOR from the Core's copy of service. installapp/uninstallapp traces go to private logs, not the terminal. update.sh installs docker and docker-buildx and links coreapp into ~/.local/bin. PLAN.md: how the Core runs apps, and corrected evidence for the Core's timers running their jobs at every boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Executable
+4
@@ -0,0 +1,4 @@
|
||||
. /federated/lib/helpers.sh
|
||||
installGeneric {{NAME}}
|
||||
# .env holds secrets
|
||||
chmod 600 /federated/apps/{{NAME}}/.env
|
||||
Reference in New Issue
Block a user