Skip to content

Instantly share code, notes, and snippets.

@obazoud
Last active December 22, 2015 04:58
Show Gist options
  • Select an option

  • Save obazoud/6420349 to your computer and use it in GitHub Desktop.

Select an option

Save obazoud/6420349 to your computer and use it in GitHub Desktop.

Revisions

  1. obazoud revised this gist Sep 3, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Dockerfile
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    # sudo docker pull obazoud/jenkins

    # Use
    # and type: cd /opt && java -jar jenkins.war
    # cd /opt && java -jar jenkins.war
    # open http://127.0.0.1:8080

    FROM ubuntu:12.10
  2. obazoud revised this gist Sep 3, 2013. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,12 @@
    # Install Jenkins 1.529 on Ubuntu 12.10

    # Build
    # sudo docker run -p 8080:8080 -i -t obazoud/jenkins /bin/bash

    # Install
    # sudo docker pull obazoud/jenkins

    # Use
    # and type: cd /opt && java -jar jenkins.war
    # open http://127.0.0.1:8080

  3. obazoud created this gist Sep 3, 2013.
    29 changes: 29 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    # Install Jenkins 1.529 on Ubuntu 12.10
    # sudo docker run -p 8080:8080 -i -t obazoud/jenkins /bin/bash
    # and type: cd /opt && java -jar jenkins.war
    # open http://127.0.0.1:8080

    FROM ubuntu:12.10

    MAINTAINER Bazoud Olivier version: 0.1

    RUN apt-get update

    # install packages
    RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-6-jdk curl git-core build-essential

    # env stuff
    ENV JENKINS_HOME /data/jenkins
    ENV JENKINS_VERSION 1.529
    ENV PATH /opt/go/bin:/root/gocode/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    #ENV HOSTNAME "$(hostname)"

    # workaround to be able to resolve localhost from within Java
    RUN sed -i "s/^127.0.0.1/127.0.0.1 $(hostname) /" /etc/hosts

    # install jenkins
    RUN curl -o /opt/jenkins.war -L http://mirrors.jenkins-ci.org/war/${JENKINS_VERSION}/jenkins.war

    # Run jenkins
    EXPOSE 8080
    CMD cd /opt && java -jar jenkins.war