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

Add mirror env var options and fix required parameters to templates #9754

Merged
merged 1 commit into from
Jul 13, 2016

Conversation

dinhxuanvu
Copy link
Member

@dinhxuanvu dinhxuanvu commented Jul 8, 2016

The Python, Ruby, Perl, NodeJS and PHP images have environment variables
that allow custom mirror repository URLs to use during the build process
to fetch or download required packages instead of the default central
repositories.

For Python: PIP_INDEX_URL to use custom PyPi mirror link
For Perl: CPAN_MIRROR to use custom CPAN mirror link
For NodeJS: NPM_MIRROR to use custom NPM mirror link
For Ruby: RUBYGEM_MIRROR to use custom RubyGems mirror link
For PHP: COMPOSER_MIRROR to use custom Composer/Packagist mirror link

This PR modifies templates associated those images to add the parameters
to allow users to inject custom mirror links if needed.

There are several parameters that are required during the build process.
However, those are not marked as required which will cause failure if
users leave them blank. Those parameters need to be explicitly marked as
required to avoid confusion and unexpected failure.

Signed-off-by: Vu Dinh [email protected]

@bparees
Copy link
Contributor

bparees commented Jul 11, 2016

@bparees
Copy link
Contributor

bparees commented Jul 11, 2016

also you need to run hack/gen-bootstrap-bindata.sh

@dinhxuanvu dinhxuanvu force-pushed the add-mirror branch 2 times, most recently from 573c833 to 6f7db4d Compare July 12, 2016 14:07
@dinhxuanvu dinhxuanvu changed the title Add mirror env var options to templates Add mirror env var options and fix required parameters to templates Jul 12, 2016
@dinhxuanvu
Copy link
Member Author

I have run the scripts and added the PR #9741 into this one as well. Thanks.

}
"limits": {
"memory": "${MEMORY_LIMIT}"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

i just fixed this spacing issue upstream, can you rerun the update script? (sorry)

Copy link
Contributor

Choose a reason for hiding this comment

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

(you'll have to rerun the gen bootstrap script as well)

The Python, Ruby, Perl, NodeJS and PHP images have environment variables
that allow custom mirror repository URLs to use during the build process
to fetch or download required packages instead of the default central
repositories.

For Python: PIP_INDEX_URL to use custom PyPi mirror link
For Perl: CPAN_MIRROR to use custom CPAN mirror link
For NodeJS: NPM_MIRROR to use custom NPM mirror link
For Ruby: RUBYGEM_MIRROR to use custom RubyGems mirror link
For PHP: COMPOSER_MIRROR to use custom Composer/Packagist mirror link

This PR modifies templates associated those images to add the parameters
to allow users to inject custom mirror links if needed.

There are several parameters that are required during the build process.
However, those are not marked as required which will cause failure if
users leave them blank. Those parameters need to be explicitly marked as
required to avoid confusion and unexpected failure.

Signed-off-by: Vu Dinh <[email protected]>
@dinhxuanvu
Copy link
Member Author

@bparees Done :)

@bparees
Copy link
Contributor

bparees commented Jul 12, 2016

lgtm
[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 8ac16bb

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 12, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6174/) (Image: devenv-rhel7_4577)

@bparees
Copy link
Contributor

bparees commented Jul 12, 2016

known flake #9681
[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 8ac16bb

@openshift-bot openshift-bot merged commit aa6e2a6 into openshift:master Jul 13, 2016
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.

3 participants