const {
ARTIFACTORY_HOST,
ARTIFACTORY_USER,
ARTIFACTORY_TOKEN,
ARTYLAB_HOST,
ARTYLAB_TOKEN,
GITHUB_INTERNAL_TOKEN
} = process.env
const config = {
cachePrivatePackages: true,
onboardingConfig: {
extends: ['config:recommended'],
branchPrefix: 'renovate-'
},
maven: {
enabled: true
},
hostRules: [
{
matchHost: ARTIFACTORY_HOST,
insecureRegistry: false,
username: ARTIFACTORY_USER,
password: ARTIFACTORY_TOKEN
},
{
matchHost: `https://${ARTIFACTORY_HOST}/artifactory/api/npm/public-npm-virtual/`,
hostType: 'npm',
token: ARTIFACTORY_TOKEN
},
{
matchHost: `https://${ARTIFACTORY_HOST}/artifactory/api/npm/internal-npm-virtual/`,
hostType: 'npm',
token: ARTIFACTORY_TOKEN
},
{
matchHost: `https://${ARTIFACTORY_HOST}/artifactory/api/npm/all-npm-virtual/`,
hostType: 'npm',
token: ARTIFACTORY_TOKEN
},
{
matchHost: `https://${ARTYLAB_HOST}/api/npm/public-npm-virtual/`,
hostType: 'npm',
token: ARTYLAB_TOKEN
},
{
matchHost: `https://${ARTIFACTORY_HOST}/api/pypi/all-pypi-virtual/simple`,
hostType: 'pypi',
username: ARTIFACTORY_USER,
password: ARTIFACTORY_TOKEN
},
{
matchHost: 'github.internal',
token: GITHUB_INTERNAL_TOKEN
}
],
// npmrc is required to avoid Renovate defaulting to npmjs.org
npmrc: `registry=https://${ARTIFACTORY_HOST}/artifactory/api/npm/all-npm-virtual/ \nalways-auth=true`,
npmrcMerge: true,
optimizeForDisabled: true,
packageRules: [
{
matchCategories: ['docker'],
enabled: true
},
{
matchDatasources: ['docker'],
registryUrls: [`https://${ARTIFACTORY_HOST}/all-docker-virtual/`]
},
{
matchDatasources: ['go'],
registryUrls: [
`https://${ARTIFACTORY_HOST}/artifactory/api/go/all-go-virtual`
]
},
{
matchDatasources: ['maven'],
registryUrls: [`https://${ARTIFACTORY_HOST}/all-maven-virtual`]
},
{
matchDatasources: ['helm'],
registryUrls: [
`https://${ARTIFACTORY_HOST}/artifactory/api/helm/all-helm-virtual`
]
},
{
matchDatasources: ['npm'],
registryUrls: [
`https://${ARTIFACTORY_HOST}/artifactory/api/npm/all-npm-virtual/`
]
},
{
matchDatasources: ['nuget'],
registryUrls: [
`https://${ARTIFACTORY_HOST}/artifactory/api/nuget/v3/all-nuget-virtual`
]
},
{
matchCategories: ['python'],
enabled: true,
registryUrls: [
`https://${ARTIFACTORY_HOST}/api/pypi/all-pypi-virtual/simple`
]
},
{
matchDatasources: ['rubygems'],
registryUrls: [
`https://${ARTIFACTORY_HOST}/artifactory/api/gems/all-gems-virtual/`
]
},
{
matchDatasources: ['sbt-package', 'sbt-plugin'],
registryUrls: [
`https://${ARTIFACTORY_HOST}/all-maven-virtual`,
`https://${ARTIFACTORY_HOST}/artifactory/all-sbt-virtual/`
]
}
],
presetCachePersistence: true,
persistRepoData: true,
repositoryCache: 'enabled',
transitiveRemediation: true,
username: 'renovate[bot]'
}
module.exports = config
Moving over from renovatebot/renovate#35612 (comment)
How are you running Renovate?
Self-hosted Renovate - renovate-ce:9.9.2-full image
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitHub
Please tell us more about your question or problem
I suspect we have reached a limit with repository count. Last count, there were about 6800 repos that have Renovate enabled. During startup, Renovate will attempt to add repositories, but then fail with the
SqliteError.The information I found suggested reducing batch size to less than 999. I couldn't track down if this is done or not already.
Config
config.js
Details
Environment Config
Details
Logs (if relevant)
Logs