-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for private registries/images
- Loading branch information
Showing
10 changed files
with
143 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodejs 21.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Callout } from 'nextra-theme-docs' | ||
|
||
# Authentication | ||
|
||
Some registries (or specific images) may require you to be authenticated. For those, you can modify `cup.json` like this: | ||
|
||
```json | ||
{ | ||
"authentication": { | ||
"<YOUR_REGISTRY_DOMAIN_1>": "<YOUR_TOKEN_1>", | ||
"<YOUR_REGISTRY_DOMAIN_2>": "<YOUR_TOKEN_2>" | ||
// ... | ||
}, | ||
// Other options | ||
} | ||
``` | ||
|
||
You can use any registry, like `ghcr.io`, `quay.io`, `gcr.io`, etc. | ||
|
||
<Callout emoji="⚠️"> | ||
For Docker Hub, use `registry-1.docker.io` | ||
</Callout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Callout } from 'nextra-theme-docs' | ||
|
||
# Insecure registries | ||
|
||
For the best security, Cup only connects to registries over SSL (HTTPS) by default. However, for people running a local registry that haven't configured SSL, this may be a problem. | ||
|
||
To solve this problem, `cup.json` has an `"insecure_registries"` option which allows you to specify exceptions | ||
|
||
Here's what it looks like: | ||
|
||
```json | ||
{ | ||
"insecure_registries": ["<INSECURE_REGISTRY_1>", "<INSECURE_REGISTRY_2>"], | ||
// Other options | ||
} | ||
``` | ||
|
||
<Callout emoji="⚠️"> | ||
When configuring an insecure registry that doesn't run on port 80, don't forget to specify it (i.e. use `localhost:5000` instead of `localhost` if your registry is running on port `5000`) | ||
</Callout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Callout } from "nextra-theme-docs"; | ||
import Image from "next/image"; | ||
|
||
import blue from "../../../assets/blue_theme.png"; | ||
import gray from "../../../assets/gray_theme.png"; | ||
|
||
# Theme | ||
|
||
<Callout emoji="⚠️"> | ||
This configuration option is only for the server | ||
</Callout> | ||
|
||
Cup initially had a blue theme which looked like this: | ||
|
||
<Image alt="Screenshot of blue theme" src={blue} /> | ||
|
||
This was replaced by a more neutral theme which is now the default: | ||
|
||
<Image alt="Screenshot of neutral theme" src={gray} /> | ||
|
||
However, you can get the old theme back by adding the `theme` key to your `cup.json` | ||
Available values are `default` and `blue`. | ||
|
||
Here's an example: | ||
|
||
```json | ||
{ | ||
"theme": "blue", | ||
// Other options | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.