Skip to content

run-container: fixup the centos repos baseurls when using http_proxy#944

Merged
blackboxsw merged 1 commit into
canonical:mainfrom
paride:fix-epel-baseurl
Jul 13, 2021
Merged

run-container: fixup the centos repos baseurls when using http_proxy#944
blackboxsw merged 1 commit into
canonical:mainfrom
paride:fix-epel-baseurl

Conversation

@paride
Copy link
Copy Markdown
Contributor

@paride paride commented Jul 13, 2021

Proposed Commit Message

run-container: fixup the centos repos baseurls when using http_proxy

The EPEL repo file used to have download.fedoraproject.org as its
baseurl. That has now been replaced by `download.example`, which we need
to replace with dl.fedoraproject.org, the actual mirror we want to
download from.

We can't use download.fedoraproject.org or the mirrorlist (which is the
default way for finding mirrors) because of our internal proxy rules.

This change only applies if http_proxy is set, otherwise the mirrors are
reached in the default way.

Additional Context

Should fix our cloud-init-copr-build job.

Test Steps

Follow what Jenkins does step by step:

https://github.com/canonical/server-jenkins-jobs/blob/main/jenkins-jobs/cloud-init/centos.yaml#L60

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

The EPEL repo file used to have download.fedoraproject.org as its
baseurl. That has now been replaced by `download.example`, which we need
to replace with dl.fedoraproject.org, the actual mirror we want to
download from.

We can't use download.fedoraproject.org or the mirrorlist (which is the
default way for finding mirrors) because of our internal proxy rules.

This change only applies if http_proxy is set, otherwise the mirrors are
reached in the default way.
Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as before. tested locally and we were awaiting Travis CI to pick up this PR and actually test it.

@blackboxsw blackboxsw merged commit 881be6e into canonical:main Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants