mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-17 09:33:38 -05:00
Update docs
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
|||||||
IconLockOpen,
|
IconLockOpen,
|
||||||
IconKey,
|
IconKey,
|
||||||
IconPlug,
|
IconPlug,
|
||||||
IconServer
|
IconServer,
|
||||||
} from "@tabler/icons-react";
|
} from "@tabler/icons-react";
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
@@ -71,12 +71,21 @@ Here's a full example:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"authentication": {
|
"$schema": "https://raw.githubusercontent.com/sergi0g/cup/v3/cup.schema.json",
|
||||||
"ghcr.io": "<YOUR_TOKEN_HERE>",
|
"version": 3,
|
||||||
"registry-1.docker.io": "<YOUR_TOKEN_HERE>"
|
"images": {
|
||||||
|
"exclude": ["ghcr.io/immich-app/immich-machine-learning"],
|
||||||
|
"extra": ["ghcr.io/sergi0g/cup:v3.0.0"]
|
||||||
},
|
},
|
||||||
"theme": "blue",
|
"registries": {
|
||||||
"insecure_registries": ["localhost:5000", "my-insecure-registry.example.com"]
|
"myregistry.com": {
|
||||||
|
"authentication": "<YOUR_TOKEN_HERE>"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"servers": {
|
||||||
|
"Raspberry Pi": "https://server.local:8000"
|
||||||
|
},
|
||||||
|
"theme": "blue"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -12,36 +12,52 @@ Cup's CLI provides the `cup check` command.
|
|||||||
|
|
||||||
```ansi
|
```ansi
|
||||||
$ cup check
|
$ cup check
|
||||||
[38;5;1m
|
[32;1m✓[0m Done!
|
||||||
mysql:8.0 Major update
|
[90;1m~ Local images[0m
|
||||||
node:20 Major update
|
[90;1m╭─────────────────────────────────────────┬──────────────────────────────────┬─────────╮[0m
|
||||||
postgres:16-alpine Major update[0m[38;5;3m
|
[90;1m│[36;1mReference [90;1m│[36;1mStatus [90;1m│[36;1mTime (ms)[90;1m│[0m
|
||||||
rust:1.80.1-alpine Minor update[0m[38;5;12m
|
[90;1m├─────────────────────────────────────────┼──────────────────────────────────┼─────────┤[0m
|
||||||
redis:7.4.0 Patch update
|
[90;1m│[0mpostgres:15-alpine [90;1m│[0m[31mMajor update (15 → 17) [0m[90;1m│[0m788 [90;1m│[0m
|
||||||
nginx:alpine Update available
|
[90;1m│[0mghcr.io/immich-app/immich-server:v1.118.2[90;1m│[0m[33mMinor update (1.118.2 → 1.127.0) [0m[90;1m│[0m2294 [90;1m│[0m
|
||||||
redis:alpine Update available
|
[90;1m│[0mollama/ollama:0.4.1 [90;1m│[0m[33mMinor update (0.4.1 → 0.5.12) [0m[90;1m│[0m533 [90;1m│[0m
|
||||||
ubuntu:latest Update available[0m[38;5;2m
|
[90;1m│[0madguard/adguardhome:v0.107.52 [90;1m│[0m[34mPatch update (0.107.52 → 0.107.57)[0m[90;1m│[0m1738 [90;1m│[0m
|
||||||
node:iron Up to date
|
[90;1m│[0mjc21/nginx-proxy-manager:latest [90;1m│[0m[32mUp to date [0m[90;1m│[0m583 [90;1m│[0m
|
||||||
2fauth/2fauth:latest Up to date
|
[90;1m│[0mlouislam/uptime-kuma:1 [90;1m│[0m[32mUp to date [0m[90;1m│[0m793 [90;1m│[0m
|
||||||
c1982/sdns:latest Up to date[0m[38;5;8m
|
[90;1m│[0mmoby/buildkit:buildx-stable-1 [90;1m│[0m[32mUp to date [0m[90;1m│[0m600 [90;1m│[0m
|
||||||
registry.acme.com/acme-server:latest Unknown
|
[90;1m│[0mtecnativa/docker-socket-proxy:latest [90;1m│[0m[32mUp to date [0m[90;1m│[0m564 [90;1m│[0m
|
||||||
[36;1mINFO [0m✨ Checked 58 images in 3772ms
|
[90;1m│[0mubuntu:latest [90;1m│[0m[32mUp to date [0m[90;1m│[0m585 [90;1m│[0m
|
||||||
|
[90;1m│[0mwagoodman/dive:latest [90;1m│[0m[32mUp to date [0m[90;1m│[0m585 [90;1m│[0m
|
||||||
|
[90;1m│[0mrolebot:latest [90;1m│[0m[90mUnknown [0m[90;1m│[0m174 [90;1m│[0m
|
||||||
|
[90;1m╰─────────────────────────────────────────┴──────────────────────────────────┴─────────╯[0m
|
||||||
|
[36;1m INFO[0m ✨ Checked 11 images in 8312ms
|
||||||
```
|
```
|
||||||
|
|
||||||
### Check for updates to specific images
|
### Check for updates to specific images
|
||||||
|
|
||||||
```ansi
|
```ansi
|
||||||
$ cup check node:latest[38;5;12m
|
$ cup check node:latest
|
||||||
node:latest Update available
|
[32;1m✓[0m Done!
|
||||||
[36;1mINFO [0m✨ Checked 1 images in 1310ms
|
[90;1m~ Local images[0m
|
||||||
|
[90;1m╭───────────┬────────────────┬─────────╮[0m
|
||||||
|
[90;1m│[36;1mReference [90;1m│[36;1mStatus [90;1m│[36;1mTime (ms)[90;1m│[0m
|
||||||
|
[90;1m├───────────┼────────────────┼─────────┤[0m
|
||||||
|
[90;1m│[0mnode:latest[90;1m│[0m[34mUpdate available[0m[90;1m│[0m788 [90;1m│[0m
|
||||||
|
[90;1m╰───────────┴────────────────┴─────────╯[0m
|
||||||
|
[36;1m INFO[0m ✨ Checked 1 images in 310ms
|
||||||
```
|
```
|
||||||
|
|
||||||
```ansi
|
```ansi
|
||||||
$ cup check nextcloud:30 postgres:14 mysql:8.0[38;5;12m
|
$ cup check nextcloud:30 postgres:14 mysql:8.0[38;5;12m
|
||||||
nextcloud:30 Update available
|
[32;1m✓[0m Done!
|
||||||
postgres:14 Update available[38;5;2m
|
[90;1m~ Local images[0m
|
||||||
mysql:8.0 Up to date
|
[90;1m╭────────────┬────────────────────────┬─────────╮[0m
|
||||||
[36;1mINFO [0m✨ Checked 3 images in 1769ms
|
[90;1m│[36;1mReference [90;1m│[36;1mStatus [90;1m│[36;1mTime (ms)[90;1m│[0m
|
||||||
|
[90;1m├────────────┼────────────────────────┼─────────┤[0m
|
||||||
|
[90;1m│[0mpostgres:14 [90;1m│[0m[31mMajor update (14 → 17) [0m[90;1m│[0m195 [90;1m│[0m
|
||||||
|
[90;1m│[0mmysql:8.0 [90;1m│[0m[31mMajor update (8.0 → 9.2)[0m[90;1m│[0m382 [90;1m│[0m
|
||||||
|
[90;1m│[0mnextcloud:30[90;1m│[0m[32mUp to date [0m[90;1m│[0m585 [90;1m│[0m
|
||||||
|
[90;1m╰────────────┴────────────────────────┴─────────╯[0m
|
||||||
|
[36;1m INFO[0m ✨ Checked 3 images in 769ms
|
||||||
```
|
```
|
||||||
|
|
||||||
## Enable icons
|
## Enable icons
|
||||||
@@ -62,7 +78,8 @@ $ cup check -r
|
|||||||
```
|
```
|
||||||
|
|
||||||
<Callout emoji="⚠️">
|
<Callout emoji="⚠️">
|
||||||
When parsing Cup's output, capture only `stdout`, otherwise you might not get valid JSON (if there are warnings)
|
When parsing Cup's output, capture only `stdout`, otherwise you might not get
|
||||||
|
valid JSON (if there are warnings)
|
||||||
</Callout>
|
</Callout>
|
||||||
|
|
||||||
## Usage with Docker
|
## Usage with Docker
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ The server provides the `cup serve` command.
|
|||||||
|
|
||||||
```ansi
|
```ansi
|
||||||
$ cup serve
|
$ cup serve
|
||||||
[36;1mINFO [0mStarting server, please wait...
|
[36;1m INFO [0mStarting server, please wait...
|
||||||
[36;1mINFO [0m✨ Checked 8 images in 8862ms
|
[36;1m INFO [0m✨ Checked 8 images in 8862ms
|
||||||
[36;1mINFO [0mReady to start!
|
[36;1m INFO [0mReady to start!
|
||||||
[94;1mHTTP [0m[32mGET[0m / [32m200[0m in 0ms
|
[94;1m HTTP [0m[32mGET[0m / [32m200[0m in 0ms
|
||||||
[94;1mHTTP [0m[32mGET[0m /assets/index.js [32m200[0m in 3ms
|
[94;1m HTTP [0m[32mGET[0m /assets/index.js [32m200[0m in 3ms
|
||||||
[94;1mHTTP [0m[32mGET[0m /assets/index.css [32m200[0m in 0ms
|
[94;1m HTTP [0m[32mGET[0m /assets/index.css [32m200[0m in 0ms
|
||||||
[94;1mHTTP [0m[32mGET[0m /api/v3/json [32m200[0m in 0ms
|
[94;1m HTTP [0m[32mGET[0m /api/v3/json [32m200[0m in 0ms
|
||||||
```
|
```
|
||||||
|
|
||||||
This will launch the server on port `8000`. To access it, visit `http://<YOUR_IP>:8000` (replace `<YOUR_IP>` with the IP address of the machine running Cup.)
|
This will launch the server on port `8000`. To access it, visit `http://<YOUR_IP>:8000` (replace `<YOUR_IP>` with the IP address of the machine running Cup.)
|
||||||
@@ -29,13 +29,13 @@ Pass the `-p` argument with the port you want to use
|
|||||||
|
|
||||||
```ansi
|
```ansi
|
||||||
$ cup serve -p 9000
|
$ cup serve -p 9000
|
||||||
[36;1mINFO [0mStarting server, please wait...
|
[36;1m INFO [0mStarting server, please wait...
|
||||||
[36;1mINFO [0m✨ Checked 8 images in 8862ms
|
[36;1m INFO [0m✨ Checked 8 images in 8862ms
|
||||||
[36;1mINFO [0mReady to start!
|
[36;1m INFO [0mReady to start!
|
||||||
[94;1mHTTP [0m[32mGET[0m / [32m200[0m in 0ms
|
[94;1m HTTP [0m[32mGET[0m / [32m200[0m in 0ms
|
||||||
[94;1mHTTP [0m[32mGET[0m /assets/index.js [32m200[0m in 3ms
|
[94;1m HTTP [0m[32mGET[0m /assets/index.js [32m200[0m in 3ms
|
||||||
[94;1mHTTP [0m[32mGET[0m /assets/index.css [32m200[0m in 0ms
|
[94;1m HTTP [0m[32mGET[0m /assets/index.css [32m200[0m in 0ms
|
||||||
[94;1mHTTP [0m[32mGET[0m /api/v3/json [32m200[0m in 0ms
|
[94;1m HTTP [0m[32mGET[0m /api/v3/json [32m200[0m in 0ms
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage with Docker
|
## Usage with Docker
|
||||||
|
|||||||
Reference in New Issue
Block a user