replace docker deployment with native system

This commit is contained in:
2026-10-22 15:40:27 +01:00
parent 36aa23c4b3
commit 6193409838
24 changed files with 317 additions and 319 deletions
+14 -14
View File
@@ -14,14 +14,15 @@ dotnet run --project tests/GuestOps.Tests
python3 -m unittest discover -s tests -p "test_*.py"
cd web && npm ci && npm run build && cd ..
python3 deploy/package_source.py \
python3 deploy/package_release.py \
--ref FULL_COMMIT_OR_TAG \
--output-directory ../ansible/playbooks/files/guestops
```
For version `0.2.1`, this creates `guestops_0.2.1.tar.gz`. Published version
files are immutable; change the application version before making another
archive.
For version `0.2.2`, this creates `guestops_0.2.2.tar.gz`. The archive contains
self-contained Linux x64 API and worker applications, including the built
frontend. Published version files are immutable; change the application version
before making another archive.
## Configure Ansible
@@ -29,12 +30,12 @@ The server group needs only the application switch, version and subdomain:
```yaml
hasguestops: true
guestopsversion: "0.2.1"
guestopsversion: "0.2.2"
guestopssubdomain: "guestops-sandbox"
```
Production uses `guestopssubdomain: "guestops"`. The playbook uses the existing
MongoDB service through the GuestOps Docker bridge gateway. Google sending,
Production uses `guestopssubdomain: "guestops"`. The native services use the
existing MongoDB service on `127.0.0.1:27017`. Google sending,
automatic live replies, AI, PMS connections, and payment connections remain
disabled until they are configured separately.
@@ -54,12 +55,11 @@ ansible-playbook playbooks/guestops.yml -K \
--extra-vars "thehost=dbserver"
```
The playbook stops the existing Compose project without deleting volumes,
replaces `/srv/guestops`, renders its environment configuration, builds and starts the
API and worker, configures Nginx, and verifies local and public readiness. Port
8080 remains loopback-only and the `guestops_app-keys` volume survives
redeployment.
The playbook stops the existing systemd services, replaces `/srv/guestops`,
renders its environment configuration, starts the self-contained API and worker,
configures Nginx, and verifies local and public readiness. Port 8080 remains
loopback-only and `/var/lib/guestops/keys` survives redeployment.
To roll back, select an older retained `guestopsversion` in group vars and run
the same playbook. MongoDB backup, Filebeat, certificates, and host monitoring
To roll back, select an older retained native `guestopsversion` (version 0.2.2 or
later) in group vars and run the same playbook. MongoDB backup, Filebeat, certificates, and host monitoring
are provided by the existing central infrastructure.