Remove proxmox-lxc.sh; recommend manual LXC creation via Proxmox UI

The whiptail helper added cognitive overhead without saving much time vs.
the standard Proxmox web UI. Removed it from deploy/ and rewrote README +
deploy/README to point at the manual flow:

  1. Create LXC via Proxmox UI (Debian 12, 4c/8GB/32GB, nesting=1)
  2. Inside: curl deploy/install.sh — provisions everything

install.sh and update.sh stay (those are useful).
This commit is contained in:
wenil
2026-05-24 19:51:30 +03:00
parent 6bc922cabf
commit cd2840fbb3
3 changed files with 40 additions and 283 deletions
+13 -15
View File
@@ -142,26 +142,24 @@ busbar-designer/
## Deploy to a home server
Three supported paths — pick one. Full docs in [`deploy/README.md`](deploy/README.md).
### Recommended: manual LXC + `install.sh`
### Option A — Proxmox VE (one-liner from the PVE host)
1. **Create LXC in Proxmox web UI** — Debian 12 standard template, unprivileged, 4 cores / 8 GB RAM / 32 GB disk, network DHCP. Enable `Features → nesting=1`.
2. **Inside the LXC** (`pct enter <CTID>` from the host):
```bash
REPO_URL=https://gitea.example.com/me/busbar-designer.git \
bash -c "$(curl -fsSL https://gitea.example.com/me/busbar-designer/raw/branch/main/deploy/install.sh)"
```
3. Open `http://<lxc-ip>:5000` from any device on your LAN.
Update after `git push` to your Gitea:
```bash
bash -c "$(curl -fsSL https://gitea.local/me/busbar-designer/raw/branch/main/deploy/proxmox-lxc.sh)"
pct exec <CTID> -- bash /opt/busbar-designer/deploy/update.sh
```
Creates a Debian 12 LXC and installs the service inside. Whiptail prompts for container ID, hostname, disk/CPU/RAM, network, repo URL, branch. Defaults to 4 GB disk, 2 cores, 1 GB RAM, dhcp.
See [`deploy/README.md`](deploy/README.md) for backup/restore, troubleshooting, and what `install.sh` actually installs.
### Option B — Inside an existing Debian/Ubuntu (LXC, VM, bare)
```bash
REPO_URL=https://gitea.local/me/busbar-designer.git \
bash -c "$(curl -fsSL https://gitea.local/me/busbar-designer/raw/branch/main/deploy/install.sh)"
```
Sets up the venv, installs deps, drops a systemd unit, starts the service. Update with `bash /opt/busbar-designer/deploy/update.sh`.
### Option C — Docker
### Alternative: Docker
```bash
git clone <repo> busbar-designer && cd busbar-designer
@@ -169,7 +167,7 @@ mkdir -p data
docker compose up -d --build
```
The `data/` folder is mounted into the container at `/app/data` so the SQLite DB survives `docker compose down`.
`data/` is bind-mounted at `/app/data` so the SQLite DB survives `docker compose down`.
### Reverse proxy (optional)