How to properly point just dockerhub images to local mirror #33510
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Gitea Please tell us more about your question or problemHey folks, So I guess the global redirect is causing problems whenever the dependency lookup points to these new sources: default.json {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"dependencyDashboard": true,
"enabledManagers": ["dockerfile", "docker-compose", "woodpecker", "bun", "npm", "nodenv"],
"packageRules": [
{
"matchDatasources": ["docker"],
"registryUrls": ["https://mirror.ocram85.com"]
}
]
} config.js module.exports = {
platform: 'gitea',
endpoint: 'https://gitea.ocram85.com',
gitAuthor: 'renovate-bot <[email protected]>',
autodiscover: true,
prHourlyLimit: 10,
automerge: false,
major: {
automerge: false,
},
automergeType: 'pr',
automergeStrategy: 'squash',
labels: ['renovate'],
dependencyDashboardLabels: ['renovate'],
githubTokenWarn: false,
semanticCommits: 'enabled',
autodiscoverFilter: ['OCram85/*', 'arkanum/*', 'renovate-bot/*', 'plugins/gitea-package'],
} renovate.json {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>renovate-bot/config"]
} This is my full renovate setup just to reference. The dependency lookup error appears on every repository which contains:
Unfortunately I couldn't find a detailed instruction or best practice how to just redirect the dockerhub / index.docker.io located images. Is there anyone who could help pointing into the right direction to solve this? Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Custom |
Beta Was this translation helpful? Give feedback.
Custom
registryUrls
are only applied for non-fully qualified docker images likeubuntu
. For others where you want to remap domains, useregistryAliases