Updated metadata
Changed author and developer to Joachim Friberg
This commit is contained in:
@@ -22,6 +22,8 @@ Skelett för att bygga och underhålla ZimaOS/CasaOS-appar i ett eget appstore-r
|
||||
└── scripts/
|
||||
├── build-appstore-zip.sh
|
||||
├── build-and-push-image.sh
|
||||
├── discover-zima-repos-and-apps.sh
|
||||
├── map-unraid-images-to-zima-apps.sh
|
||||
└── validate-appstore.sh
|
||||
```
|
||||
|
||||
@@ -121,6 +123,61 @@ Image-verifiering:
|
||||
- Standardläge: fail-open (varningar skrivs ut, zip byggs ändå).
|
||||
- CI/Gitea-runner (`CI=true` eller `GITEA_ACTIONS=true`): scriptet blir automatiskt strikt och returnerar felkod om någon image saknas.
|
||||
|
||||
### `discover-zima-repos-and-apps.sh`
|
||||
|
||||
Hämtar appstore-repon från en ZimaOS-host via SSH (auto scan av kända CasaOS/ZimaOS-paths), validerar repo-zippar och skriver en inventerings-YAML.
|
||||
|
||||
```bash
|
||||
./scripts/discover-zima-repos-and-apps.sh \
|
||||
--host 10.0.1.10 \
|
||||
--user root \
|
||||
--out artifacts/zima-repo-app-inventory.yaml
|
||||
```
|
||||
|
||||
Med explicit extra repo-URL (om host-scan missar något):
|
||||
|
||||
```bash
|
||||
./scripts/discover-zima-repos-and-apps.sh \
|
||||
--host 10.0.1.10 \
|
||||
--repo-url https://example.org/my-appstore.zip \
|
||||
--out artifacts/zima-repo-app-inventory.yaml
|
||||
```
|
||||
|
||||
Endast manuella repo-URL:er (utan SSH-scan):
|
||||
|
||||
```bash
|
||||
./scripts/discover-zima-repos-and-apps.sh \
|
||||
--host 10.0.1.10 \
|
||||
--skip-host-scan \
|
||||
--insecure-tls \
|
||||
--repo-url https://example.org/my-appstore.zip \
|
||||
--out artifacts/zima-repo-app-inventory.yaml
|
||||
```
|
||||
|
||||
`--insecure-tls` ska bara användas när CA-kedja saknas i den miljö där scriptet körs.
|
||||
|
||||
Output innehåller:
|
||||
|
||||
- `repositories[]`: repo-URL, källa (host-scan/manual), status och felorsak.
|
||||
- `apps[]`: `app_id`, `title`, `repo_url` och normaliserade `images`.
|
||||
|
||||
### `map-unraid-images-to-zima-apps.sh`
|
||||
|
||||
Mappar en lista av Unraid-image-referenser mot inventerings-YAML från discovery-scriptet.
|
||||
|
||||
```bash
|
||||
./scripts/map-unraid-images-to-zima-apps.sh \
|
||||
--unraid-images /tmp/unraid-images.txt \
|
||||
--inventory artifacts/zima-repo-app-inventory.yaml \
|
||||
--out artifacts/unraid-to-zima-map.yaml
|
||||
```
|
||||
|
||||
Output innehåller:
|
||||
|
||||
- `mapping[]` per image med `match_status` = `found`, `missing` eller `ambiguous`.
|
||||
- `matched_apps[]` med träfforsaker (`image_exact`, `image_basename`, `name_alias`).
|
||||
- `summary` för total/found/missing/ambiguous.
|
||||
|
||||
## Säkerhetsriktlinjer
|
||||
|
||||
- Undvik privilegierad container, host network och `docker.sock` om det inte är absolut nödvändigt.
|
||||
|
||||
Reference in New Issue
Block a user