-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Allows some default settings to be override using ENV #19
Conversation
Signed-off-by: Sam Xiao <sam.xs.xiao@gmail.com>
@ndeloof WDYT? This is in line with what you were planning? Main concern is the chowning of JENKINS_HOME - if this is bind mounted in - we don't want to do this. |
if we don't use $ docker run -p 8080:8080 myjenkins
Running from: /usr/share/jenkins/jenkins.war
Oct 01, 2014 9:04:01 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Oct 01, 2014 9:04:03 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Oct 01, 2014 9:04:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Oct 01, 2014 9:04:06 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080
Oct 01, 2014 9:04:06 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Oct 01, 2014 9:04:06 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 01, 2014 9:04:06 PM hudson.LocalPluginManager loadBundledPlugins
SEVERE: Failed to extract the bundled plugin mailer.hpi
java.io.FileNotFoundException: /var/lib/jenkins/plugins/mailer.jpi (Permission denied) |
@ndeloof will use this as a base image for building custom jenkins image |
Signed-off-by: Sam Xiao <sam.xs.xiao@gmail.com>
@xbeta yes, I understood well the use case (and have a comparable one), just would like to only include a subset. Give me some time to review in detail |
@ndeloof Thx! But after you merge #16 to upstream, we cannot use |
This is by intention. customizing plugins should not occur when running the image but at build time. The entrypoint command should not have to do any post-processing on image to complete the installation. Understand how annoying is to rebase changes. Don't spend to much time doing this, I can cherry-pick your commits - for this reason I'd prefer you make some baby steps changes as individual commits, so it's simpler to review them. |
@ndeloof sure, let me know what works best for you. I agree the point that we should keep the customizing plugins on the custom image build at build time. Not sure how you want me to separate them into smaller commits, but I can take a look at that later tomorrow. |
b32f552 introduced JENKINS_OPTS that mostly cover this request |
@ndeloof What about also |
@xbeta open separate issues to discuss those if you wish |
Signed-off-by: Sam Xiao sam.xs.xiao@gmail.com