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 support to configure Initial Image from global configuration #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

leelaprasadv
Copy link

Hi @jonhermansen,

Recently Docker announced download rate limit on anonymous docker image downloads and docker-custom-build-environment plugin internally uses an alpine 3.6 call it an initial image/initImage (hard coded inside plugin). This image is downloaded for most job runs.

Here is a PR to make this image configurable in Jenkins Global Configuration under a new section Build In Docker Configuration. This will enable/support configuring the image from local repositories instead of pointing it to docker hub.

Change log:

  • Added a new section Build In Docker Configuration in global configuration.
  • Added a new text field Init Image to allow the Initial image used by the plugin to be configurable (global.jelly).
  • Default the initImage to alpine:3.6.
  • Form validations for new field in configuration.
  • Help docs for new field.

Preview of the changes:
Configuration preview:
Screenshot 2020-11-12 033803
Note: Value defaults to alpine:3.6

Form validation:
Screenshot 2020-11-12 033953

~ Prasad.

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.

1 participant