fabric8io / openshift-jenkins-s2i-config

Config repo used to build a customised OpenShift Jenkins image using S2I
6 stars 23 forks source link

Improves plugin storage fix and reduces the image size #226

Closed hrishin closed 5 years ago

hrishin commented 5 years ago

In last optimization, system used to link '/opt/openshift/plugins/*' directory contents to , which contains decompressed plugins directories in order prevent jenkins to extract plugins on gluster storage. However, Jenkins used to override decompressed plugin contents to make this patch effective Jenkins requires another boot. Another issue was, how to cleanup existing plugins from gluster storage when rolling out this plugin fix patch.

This patch creates symbolic link between the directory rather than directory contents, which essentially eliminates the need to reboot jenkins twice to get decompressed plugins content effective. Now symbolic link is present between a directory, so let jenkins extract the plugins in to directory, hence to reduce the image size system is not decompressing plugins content upfront.

This patch also takes care of cleaning up the plugins from gluster storage.

Fixes https://github.com/openshiftio/openshift.io/issues/4635

fabric8cd commented 5 years ago

Good news @hrishin snapshot Jenkins image is available. docker pull fabric8/jenkins-openshift:SNAPSHOT-PR-226-118

hrishin commented 5 years ago

With this image

INFO: Jenkins is fully up and running
--
  | Dec 16, 2018 4:34:49 AM jenkins.metrics.api.Metrics$HealthChecker execute
  | WARNING: Some health checks are reporting as unhealthy: [disk-space : Only 0.924 Gb free on (master)]
fabric8cd commented 5 years ago

Good news @hrishin snapshot Jenkins image is available. docker pull fabric8/jenkins-openshift:SNAPSHOT-PR-226-119

fabric8cd commented 5 years ago

Good news @hrishin snapshot Jenkins image is available. docker pull fabric8/jenkins-openshift:SNAPSHOT-PR-226-120

pradeepitm12 commented 5 years ago

Tested, looks good to me.

fabric8cd commented 5 years ago

Good news @hrishin snapshot Jenkins image is available. docker pull fabric8/jenkins-openshift:SNAPSHOT-PR-226-123