f3d24634e4
- Translate all documentation to English - Add docs/ssh-mesh.md and scripts/setup/setup-ssh-mesh.sh - Add config/hosts/atc-lab.hosts for /etc/hosts on all VMs - Ignore atc_cluster private key in git; mesh deployed on 12 hosts
52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
Markdown
# Operations
|
|
|
|
## Change config and deploy
|
|
|
|
```bash
|
|
cd /root/lakehouse
|
|
# Edit config/homepage/*.yaml or rss-proxy/server.py
|
|
git add -A && git commit -m "description" && git push origin master
|
|
|
|
# Reload homepage
|
|
docker exec homepage wget -qO- http://127.0.0.1:3000/api/revalidate
|
|
|
|
# Rebuild RSS proxy
|
|
docker compose -f deploy/docker-compose.homepage.yml build rss-proxy
|
|
docker compose -f deploy/docker-compose.homepage.yml up -d rss-proxy
|
|
```
|
|
|
|
## Logs
|
|
|
|
```bash
|
|
docker logs -f homepage
|
|
docker logs -f rss-proxy
|
|
docker logs -f superset
|
|
```
|
|
|
|
Application logs are outside git: `config/homepage/logs/` (see `.gitignore`).
|
|
|
|
## Refresh container inventory
|
|
|
|
```bash
|
|
./scripts/deploy/export-inventory.sh
|
|
git add inventory/ && git commit -m "chore: refresh container inventory"
|
|
```
|
|
|
|
## Restart full docker01 stack
|
|
|
|
```bash
|
|
./scripts/deploy/deploy-atc-docker01.sh
|
|
```
|
|
|
|
## SSH between hosts
|
|
|
|
```bash
|
|
ssh -i /root/.ssh/atc_cluster root@atc-lake01
|
|
```
|
|
|
|
See [ssh-mesh.md](ssh-mesh.md).
|
|
|
|
## Git on the server
|
|
|
|
Clone lives at `/root/lakehouse` on `atc-docker01`. Use your Forgejo credentials to push to `atc-mgt01`.
|