Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

289 privateimagehubs dockerfile #290

Merged
merged 3 commits into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions public-site/docs/src/references/reference-radix-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1044,17 +1044,20 @@ There is a [detailed guide](../../guides/external-alias/) on how to set up exter
spec:
components:
- name: webserver
image: privaterepodeleteme.azurecr.io/nginx:latest
image: myappacr.azurecr.io/myapp-base:latest
privateImageHubs:
privaterepodeleteme.azurecr.io:
myappacr.azurecr.io:
username: 23452345-3d71-44a7-8476-50e8b281abbc
email: [email protected]
privaterepodeleteme2.azurecr.io:
username: 23423424-3d71-44a7-8476-50e8b281abb2
email: [email protected]
```

It is possible to pull images from private image hubs during deployment for an application. This means that you can add a reference to a private image hub in radixconfig.yaml file using the `image:` tag. See example above. A `password` for these must be set via the Radix Web Console (under Configuration -> Private image hubs).
It is possible to pull images from private image hubs during deployment for an application. This means that you can add a reference to a private image hub in radixconfig.yaml file using the `image:` tag. See example above.

With the `useBuildKit: true` setting in your `radixconfig.yaml`, you can also use privateImageHub credentials within the Dockerfile `FROM` instruction.
```dockerfile
FROM myappacr.azurecr.io/myapp-base:latest
```
A `password` for these must be set via the Radix Web Console (under Configuration -> Private image hubs).

To get more information on how to connect to a private Azure container registry (ACR), see the following [guide](https://thorsten-hans.com/how-to-use-private-azure-container-registry-with-kubernetes). The chapter `Provisioning an Azure Container Registry` provide information on how to get service principle `username` and `password`. It is also possible to create a Service Principle in Azure AD, and then manually grant it access to your ACR.

Expand Down
Loading