Skip to content

Jenkins slave Dockerfile example fails to build #8980

Closed

Description

@siamaksade

The example Dockerfile for Jenkins slave assumes the base image is CentOS and doesn't run on OpenShift Enterprise:
https://github.com/openshift/origin/blob/master/examples/jenkins-master/slave/Dockerfile#L6

centosplus and epel-release don't exist on rhel based images. Either two separate dockerfiles should be created for rhel and centos or Dockerfile should conditionally install appropriate packages based on the base image.

Activity

  1. mfojtik commented on May 23, 2016

    @mfojtik
    Contributor

    @siamaksade i'm not sure if I will get time to fix this, @bparees ?

  2. added
    kind/bug
    on May 23, 2016
  3. assigned and unassigned on May 23, 2016
  4. bparees commented on May 23, 2016

    @bparees
    Contributor

    this is an example and not a product feature. lowering priority.

  5. siamaksade commented on May 23, 2016

    @siamaksade
    Author

    It has rather high priority considering this example is the only documentation provided on how to use the slave pod feature on OpenShift 3.2. If this doesn't work, there is no other way for users to figure how to use this.

    Official docs also send the user to this example.

  6. bparees commented on May 23, 2016

    @bparees
    Contributor

    It has rather high priority considering this example is the only documentation provided on how to use the slave pod feature on OpenShift 3.2

    it's not an OSE3.2 feature. It's a tutorial/example. We do not officially support or maintain the kubernetes plugin which enables launching slave pods on openshift.

  7. siamaksade commented on May 25, 2016

    @siamaksade
    Author
  8. bparees commented on Oct 14, 2016

    @bparees
    Contributor

    @gabemontero please use this issue to clean up the master-slave example. I'd like to get rid of all the aspects of that example that deal w/ turning standard images into slave images and just make it a simple example that uses our existing maven or nodejs slave image, and mentions "if you need a different slave image, extend our slave-base image"

  9. gabemontero commented on Nov 8, 2016

    @gabemontero
    Contributor

    @bparees a couple of quick thoughts:

    1. We could switch the master-slave README to some minor instructions to explain how to update the existing OpenShift Sample job to run on the nodejs slave by checking Restrict where this project can be run and then specifying the Label nodejs (including the minor callout you mentioned on how to extend slave-base image); then delete all the other content - the templates, sample jobs, etc. I just ran through the scenario manually and it works like a charm.

    2. Update the base OpenShift Sample job to add this restriction and just update the README for that job to highlight the slave image nuances (including the callout you mentioned on how to extend slave-base image), and just nuke the entire master-slave subdir in the origin repo. Updating the existing sample job would also be trivial, but perhaps having both a master only and master slave permutation is more desirable.

    Thoughts?

  10. bparees commented on Nov 8, 2016

    @bparees
    Contributor

    I think i like (1) best, because i'd like to keep the default sample job as simple as possible (at least in part because it's used by some of our tests too, so making it depend on slave pods makes it more fragile).

    But doing that means we still haven't explained to users how to create their own slave images. Perhaps the right solution for that is to add a tutorial section to the official product documentation. "Using slave images with jenkins" which would include a section on creating your own slave images.

    So (1) + official doc about slave image usage/creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/techdebtcomponent/imagekind/bugpriority/P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions