When running the dlrn command it needs to create a mock configuration with all required repos to build packages. This configuration file is created on the fly by DLRN by concatenating several files:
1. First part is taken from scripts/<target>.cfg where target is an option in projects.ini[1]. By default this is centos.cfg [2]
2. Appends content of <baseurl>/delorean-deps.repo [3] where baseurl is an option in projects.ini.
3. If --dev option is used (as in tripleo gate jobs), content of <baseurl>/current/delorean.repo is appended [4]
I think the best option would be:
1. Create a file scripts/custom.cfg with all required content using repo configurations from /etc/yum.repos.d/ as at this point we have config files with openstaci-infra regional mirrors.
2. Create empty /tmp/fake-repo/delorean-deps.repo and /tmp/fake-repo/current/delorean.repo
3. Modifying projects.ini file with values:
baseurl="file:///tmp/fake/repo"
target=custom
urllopen can work with file:/// urls, so this theoretically would work.
This is how DLRN works:
When running the dlrn command it needs to create a mock configuration with all required repos to build packages. This configuration file is created on the fly by DLRN by concatenating several files:
1. First part is taken from scripts/ <target> .cfg where target is an option in projects.ini[1]. By default this is centos.cfg [2] /delorean- deps.repo [3] where baseurl is an option in projects.ini. /current/ delorean. repo is appended [4]
2. Appends content of <baseurl>
3. If --dev option is used (as in tripleo gate jobs), content of <baseurl>
I think the best option would be:
1. Create a file scripts/custom.cfg with all required content using repo configurations from /etc/yum.repos.d/ as at this point we have config files with openstaci-infra regional mirrors.
2. Create empty /tmp/fake- repo/delorean- deps.repo and /tmp/fake- repo/current/ delorean. repo
3. Modifying projects.ini file with values:
baseurl= "file:/ //tmp/fake/ repo"
target=custom
urllopen can work with file:/// urls, so this theoretically would work.
[1] https:/ /github. com/softwarefac tory-project/ DLRN/blob/ master/ dlrn/build. py#L109 /github. com/softwarefac tory-project/ DLRN/blob/ master/ scripts/ centos. cfg /github. com/softwarefac tory-project/ DLRN/blob/ master/ dlrn/build. py#L151- L162 /github. com/softwarefac tory-project/ DLRN/blob/ master/ dlrn/build. py#L170- L181
[2] https:/
[3] https:/
[4] https:/