-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 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,21 @@ | ||
Since Docker images for the scan server and client are located in a private GitHub repository, you need credentials for pulling. The authentication requires some prerequisites: | ||
|
||
1. Create a new access token with the only right "read packages". | ||
2. Create a string in the format $USERNAME:$PASSWORD and encode it to base64. | ||
3. Create a docker.config JSON file: | ||
```json | ||
{ | ||
"auths": { | ||
"ghcr.io": { | ||
"auth": "$$_BASE64_ENCODED_USER_NAME_AND_PASSWORD_$$" | ||
} | ||
} | ||
} | ||
``` | ||
4. Encode docker.config to base64 and copy it into a values.yaml file: | ||
|
||
```yaml | ||
secret: | ||
dockerconfigjson: $$_BASE64_ENCODED_DOCKER_CONFIG_$$ | ||
``` | ||
5. Test the `values.yaml` locally before prodiving it to a customer. |