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:
2026-12-03 11:54:25 -07:00
co-authored by Claude Opus 5.5
parent 0654d4c712
commit 1108060432
16 changed files with 621 additions and 13 deletions
+8 -3
View File
@@ -22,12 +22,14 @@ PACKAGES=(
dnsmasq # DHCP/DNS for libvirt's default NAT network
edk2-ovmf # UEFI firmware for guests
dmidecode # host hardware info for libvirt
docker # coreapp builds apps' images here
docker-buildx
)
echo "Checking coreapp-dev's packages..."
install_packages "${PACKAGES[@]}"
enable_services --now libvirtd.service
enable_services --now libvirtd.service docker.service
if ! systemctl is-active --quiet libvirtd.service; then
echo "Starting libvirtd.service..."
sudo systemctl start libvirtd.service
@@ -173,8 +175,11 @@ if command -v ufw > /dev/null && grep -qs '^ENABLED=yes' /etc/ufw/ufw.conf; then
done
fi
# The coreapp-vm command: a symlink into this clone, so pulling updates it
# The coreapp-vm and coreapp commands: symlinks into this clone, so pulling
# updates them
mkdir -p "$HOME/.local/bin"
ln -sfn "$SELF/bin/coreapp-vm" "$HOME/.local/bin/coreapp-vm"
for cmd in coreapp-vm coreapp; do
ln -sfn "$SELF/bin/$cmd" "$HOME/.local/bin/$cmd"
done
echo "coreapp-dev's host software is up to date."