github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/jenkins/job-builder-image/Dockerfile (about)

     1  # Copyright 2016 The Kubernetes Authors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  # This docker image runs Jenkins Job Builder (JJB) for automatic job reconciliation.
    16  
    17  FROM ubuntu:14.04
    18  MAINTAINER Joe Finney <spxtr@google.com>
    19  
    20  RUN mkdir /build
    21  WORKDIR /build
    22  
    23  # Dependencies for JJB
    24  RUN apt-get update && apt-get install -y \
    25      wget \
    26      git \
    27      python-dev \
    28      python-pip \
    29      libyaml-dev \
    30      python-yaml
    31  RUN pip install PyYAML python-jenkins
    32  # Required since JJB supports python 2.6, which doesn't have ordereddict built-in. We have 2.7.
    33  RUN wget https://pypi.python.org/packages/source/o/ordereddict/ordereddict-1.1.tar.gz \
    34      && tar -xvf ordereddict-1.1.tar.gz \
    35      && cd ordereddict-1.1 \
    36      && python setup.py install
    37  
    38  RUN git clone https://git.openstack.org/openstack-infra/jenkins-job-builder \
    39      && cd jenkins-job-builder \
    40      && python setup.py install
    41  
    42  # JJB configuration lives in /etc/jenkins_jobs/jenkins_jobs.ini
    43  RUN mkdir -p /etc/jenkins_jobs
    44  
    45  RUN mkdir /test-infra
    46  WORKDIR /test-infra