├── Dockerfile ├── README.md ├── dind.conf ├── jenkins.conf ├── jenkins ├── com.cloudbees.dockerpublish.DockerBuilder.xml ├── com.cloudbees.jenkins.GitHubPushTrigger.xml └── jobs │ ├── training-webapp-build │ ├── builds │ │ ├── 1 │ │ ├── 2 │ │ ├── 2014-05-23_17-00-49 │ │ │ ├── build.xml │ │ │ ├── changelog.xml │ │ │ └── log │ │ ├── 2014-05-23_17-14-48 │ │ │ ├── build.xml │ │ │ ├── changelog.xml │ │ │ └── log │ │ ├── lastFailedBuild │ │ ├── lastStableBuild │ │ ├── lastSuccessfulBuild │ │ ├── lastUnstableBuild │ │ └── lastUnsuccessfulBuild │ ├── config.xml │ ├── lastStable │ ├── lastSuccessful │ └── nextBuildNumber │ ├── training-webapp-deploy │ ├── builds │ │ ├── 1 │ │ ├── 2 │ │ ├── 2014-05-23_17-09-25 │ │ │ ├── build.xml │ │ │ ├── changelog.xml │ │ │ └── log │ │ ├── 2014-05-23_17-16-56 │ │ │ ├── build.xml │ │ │ ├── changelog.xml │ │ │ └── log │ │ ├── lastFailedBuild │ │ ├── lastStableBuild │ │ ├── lastSuccessfulBuild │ │ ├── lastUnstableBuild │ │ └── lastUnsuccessfulBuild │ ├── config.xml │ ├── lastStable │ ├── lastSuccessful │ └── nextBuildNumber │ └── training-webapp-test │ ├── builds │ ├── 1 │ ├── 2 │ ├── 2014-05-23_17-07-55 │ │ ├── build.xml │ │ ├── changelog.xml │ │ └── log │ ├── 2014-05-23_17-15-01 │ │ ├── build.xml │ │ ├── changelog.xml │ │ └── log │ ├── lastFailedBuild │ ├── lastStableBuild │ ├── lastSuccessfulBuild │ ├── lastUnstableBuild │ └── lastUnsuccessfulBuild │ ├── config.xml │ ├── lastStable │ ├── lastSuccessful │ └── nextBuildNumber ├── runjenkins.sh ├── supervisor.conf └── wrapdocker /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:jessie 2 | MAINTAINER Education Team education@docker.com 3 | RUN apt-get update -qq 4 | RUN apt-get install -qqy ca-certificates openjdk-7-jdk curl git-core 5 | 6 | RUN mkdir -p /opt/jenkins/data/plugins 7 | RUN curl -sf -o /opt/jenkins/jenkins.war -L http://mirrors.jenkins-ci.org/war/latest/jenkins.war 8 | RUN curl -sf -o /opt/jenkins/data/plugins/git-client.hpi -L http://mirrors.jenkins-ci.org/plugins/git-client/latest/git-client.hpi 9 | RUN curl -sf -o /opt/jenkins/data/plugins/scm-api.hpi -L http://mirrors.jenkins-ci.org/plugins/scm-api/latest/scm-api.hpi 10 | RUN curl -sf -o /opt/jenkins/data/plugins/git.hpi -L http://mirrors.jenkins-ci.org/plugins/git/latest/git.hpi 11 | #RUN curl -sf -o /opt/jenkins/data/plugins/github-api.hpi -L http://mirrors.jenkins-ci.org/plugins/github-api/latest/github-api.hpi 12 | #RUN curl -sf -o /opt/jenkins/data/plugins/github.hpi -L http://mirrors.jenkins-ci.org/plugins/github/latest/github.hpi 13 | RUN curl -sf -o /opt/jenkins/data/plugins/docker-build-publish.hpi -L http://mirrors.jenkins-ci.org/plugins/docker-build-publish/latest/docker-build-publish.hpi 14 | RUN curl -sf -o /opt/jenkins/data/plugins/token-macro.hpi -L http://mirrors.jenkins-ci.org/plugins/token-macro/latest/token-macro.hpi 15 | #RUN curl -sf -o /opt/jenkins/data/plugins/notification.hpi -L http://mirrors.jenkins-ci.org/plugins/notification/latest/notification.hpi 16 | 17 | ADD jenkins/com.cloudbees.dockerpublish.DockerBuilder.xml /opt/jenkins/data/com.cloudbees.dockerpublish.DockerBuilder.xml 18 | ADD jenkins/com.cloudbees.jenkins.GitHubPushTrigger.xml /opt/jenkins/data/com.cloudbees.jenkins.GitHubPushTrigger.xml 19 | 20 | ADD jenkins/jobs/ /opt/jenkins/data/jobs/ 21 | 22 | RUN curl -sf -o /usr/local/bin/docker -L https://get.docker.io/builds/Linux/x86_64/docker-latest 23 | ADD runjenkins.sh /usr/local/bin/runjenkins 24 | 25 | RUN chmod 0755 /usr/local/bin/docker /usr/local/bin/runjenkins 26 | 27 | ENV JENKINS_HOME /opt/jenkins/data 28 | EXPOSE 8080 29 | CMD ["/usr/local/bin/runjenkins"] 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker Jenkins image 2 | 3 | This is the Docker Jenkins image for the Docker Fundamentals capstone 4 | exercise. 5 | 6 | Run: `docker run -it -v /var/run/docker.sock:/var/run/docker.sock ` 7 | 8 | The jobs are pre-populated and should work out of the box. 9 | 10 | ## License 11 | 12 | Apache 2.0 13 | 14 | ## Copyright 15 | 16 | Copyright Docker Inc Education Team 2014 17 | -------------------------------------------------------------------------------- /dind.conf: -------------------------------------------------------------------------------- 1 | [program:dind] 2 | command=/usr/local/bin/wrapdocker 3 | -------------------------------------------------------------------------------- /jenkins.conf: -------------------------------------------------------------------------------- 1 | [program:jenkins] 2 | command=/usr/local/bin/runjenkins 3 | -------------------------------------------------------------------------------- /jenkins/com.cloudbees.dockerpublish.DockerBuilder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @@DHUSER@@ 4 | 5 | @@DHEMAIL@@ 6 | 7 | -------------------------------------------------------------------------------- /jenkins/com.cloudbees.jenkins.GitHubPushTrigger.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | false 4 | 5 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/1: -------------------------------------------------------------------------------- 1 | 2014-05-23_17-00-49 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/2: -------------------------------------------------------------------------------- 1 | 2014-05-23_17-14-48 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/2014-05-23_17-00-49/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | origin/master 13 | 14 | 15 | 44d5db927304b09a9967937be88b4ca04a52214f 16 | 17 | 18 | 19 | origin/master 20 | 21 | 22 | 23 | 24 | 1 25 | 26 | 27 | 28 | 29 | 30 | 31 | https://github.com/huslage/webapp.git 32 | 33 | 34 | 35 | 36 | 37 | origin/master 38 | 39 | 40 | 41 | /opt/jenkins/data/jobs/training-webapp-build/workspace 42 | 43 | 44 | 45 | 1 46 | 1400864449287 47 | SUCCESS 48 | #1 huslage/webapp-1 49 | 421454 50 | US-ASCII 51 | false 52 | 53 | /opt/jenkins/data/jobs/training-webapp-build/workspace 54 | 1.563 55 | 56 | false 57 | 58 | 59 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/2014-05-23_17-00-49/changelog.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docker-training/jenkins/738aad7c6ffb7f0361e6f4b62262bc849f6a49b9/jenkins/jobs/training-webapp-build/builds/2014-05-23_17-00-49/changelog.xml -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/2014-05-23_17-00-49/log: -------------------------------------------------------------------------------- 1 | Started by user ha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==anonymous 2 | Building in workspace /opt/jenkins/data/jobs/training-webapp-build/workspace 3 | > git rev-parse --is-inside-work-tree 4 | Fetching changes from the remote Git repository 5 | > git config remote.origin.url https://github.com/huslage/webapp.git 6 | Fetching upstream changes from https://github.com/huslage/webapp.git 7 | > git --version 8 | > git fetch --tags --progress https://github.com/huslage/webapp.git +refs/heads/*:refs/remotes/origin/* 9 | > git rev-parse origin/master^{commit} 10 | Checking out Revision 44d5db927304b09a9967937be88b4ca04a52214f (origin/master) 11 | > git config core.sparsecheckout 12 | > git checkout -f 44d5db927304b09a9967937be88b4ca04a52214f 13 | First time build. Skipping changelog. 14 | No credentials provided, so not logging in to the registry. 15 | [workspace] $ docker build -t huslage/webapp-1 . 16 | Uploading context 89.09 kB 17 | Uploading context 18 | Step 0 : FROM ubuntu:12.04 19 | Pulling repository ubuntu 20 | 21 | 22 | 23 | 24 | 25 | ---> 74fe38d11401 26 | Step 1 : MAINTAINER Docker Education Team 27 | ---> Running in 86695403cc6b 28 | ---> ba88068e5869 29 | Removing intermediate container 86695403cc6b 30 | Step 2 : RUN apt-get update 31 | ---> Running in 8a2b6c542093 32 | Hit http://archive.ubuntu.com precise Release.gpg 33 | Get:1 http://archive.ubuntu.com precise-updates Release.gpg [198 B] 34 | Get:2 http://archive.ubuntu.com precise-security Release.gpg [198 B] 35 | Hit http://archive.ubuntu.com precise Release 36 | Get:3 http://archive.ubuntu.com precise-updates Release [49.6 kB] 37 | Get:4 http://archive.ubuntu.com precise-security Release [49.6 kB] 38 | Hit http://archive.ubuntu.com precise/main Sources 39 | Hit http://archive.ubuntu.com precise/restricted Sources 40 | Hit http://archive.ubuntu.com precise/universe Sources 41 | Hit http://archive.ubuntu.com precise/main amd64 Packages 42 | Hit http://archive.ubuntu.com precise/restricted amd64 Packages 43 | Hit http://archive.ubuntu.com precise/universe amd64 Packages 44 | Hit http://archive.ubuntu.com precise/main i386 Packages 45 | Hit http://archive.ubuntu.com precise/restricted i386 Packages 46 | Hit http://archive.ubuntu.com precise/universe i386 Packages 47 | Get:5 http://archive.ubuntu.com precise-updates/main Sources [561 kB] 48 | Get:6 http://archive.ubuntu.com precise-updates/restricted Sources [8429 B] 49 | Get:7 http://archive.ubuntu.com precise-updates/universe Sources [132 kB] 50 | Get:8 http://archive.ubuntu.com precise-updates/main amd64 Packages [1011 kB] 51 | Get:9 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [16.4 kB] 52 | Get:10 http://archive.ubuntu.com precise-updates/universe amd64 Packages [310 kB] 53 | Get:11 http://archive.ubuntu.com precise-updates/main i386 Packages [1043 kB] 54 | Get:12 http://archive.ubuntu.com precise-updates/restricted i386 Packages [16.3 kB] 55 | Get:13 http://archive.ubuntu.com precise-updates/universe i386 Packages [317 kB] 56 | Get:14 http://archive.ubuntu.com precise-security/main Sources [132 kB] 57 | Get:15 http://archive.ubuntu.com precise-security/restricted Sources [2258 B] 58 | Get:16 http://archive.ubuntu.com precise-security/universe Sources [35.5 kB] 59 | Get:17 http://archive.ubuntu.com precise-security/main amd64 Packages [495 kB] 60 | Get:18 http://archive.ubuntu.com precise-security/restricted amd64 Packages [5282 B] 61 | Get:19 http://archive.ubuntu.com precise-security/universe amd64 Packages [118 kB] 62 | Get:20 http://archive.ubuntu.com precise-security/main i386 Packages [526 kB] 63 | Get:21 http://archive.ubuntu.com precise-security/restricted i386 Packages [5273 B] 64 | Get:22 http://archive.ubuntu.com precise-security/universe i386 Packages [124 kB] 65 | Fetched 4960 kB in 1s (2688 kB/s) 66 | Reading package lists... 67 | ---> a22908af82c8 68 | Removing intermediate container 8a2b6c542093 69 | Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q curl python-all python-pip wget 70 | ---> Running in 761a93d84d4f 71 | Reading package lists... 72 | Building dependency tree... 73 | Reading state information... 74 | The following extra packages will be installed: 75 | ca-certificates file krb5-locales libasn1-8-heimdal libcurl3 libexpat1 76 | libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2 libgssapi3-heimdal 77 | libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal 78 | libhx509-5-heimdal libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal 79 | libkrb5-3 libkrb5support0 libldap-2.4-2 libmagic1 libp11-kit0 80 | libroken18-heimdal librtmp0 libsasl2-2 libsasl2-modules libsqlite3-0 81 | libtasn1-3 libwind0-heimdal mime-support openssl python python-pkg-resources 82 | python-setuptools python2.7 python2.7-minimal 83 | Suggested packages: 84 | rng-tools gnutls-bin krb5-doc krb5-user libsasl2-modules-otp 85 | libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit 86 | libsasl2-modules-gssapi-heimdal python-doc python-tk python-distribute 87 | python-distribute-doc python2.7-doc binutils binfmt-support 88 | The following NEW packages will be installed: 89 | ca-certificates curl file krb5-locales libasn1-8-heimdal libcurl3 libexpat1 90 | libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2 libgssapi3-heimdal 91 | libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal 92 | libhx509-5-heimdal libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal 93 | libkrb5-3 libkrb5support0 libldap-2.4-2 libmagic1 libp11-kit0 94 | libroken18-heimdal librtmp0 libsasl2-2 libsasl2-modules libsqlite3-0 95 | libtasn1-3 libwind0-heimdal mime-support openssl python python-all 96 | python-pip python-pkg-resources python-setuptools python2.7 wget 97 | The following packages will be upgraded: 98 | python2.7-minimal 99 | 1 upgraded, 41 newly installed, 0 to remove and 9 not upgraded. 100 | Need to get 10.2 MB of archives. 101 | After this operation, 28.0 MB of additional disk space will be used. 102 | Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libsqlite3-0 amd64 3.7.9-2ubuntu1.1 [349 kB] 103 | Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libroken18-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [46.0 kB] 104 | Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libasn1-8-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [220 kB] 105 | Get:4 http://archive.ubuntu.com/ubuntu/ precise/main libgpg-error0 amd64 1.10-2ubuntu1 [14.5 kB] 106 | Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgcrypt11 amd64 1.5.0-3ubuntu0.2 [280 kB] 107 | Get:6 http://archive.ubuntu.com/ubuntu/ precise/main libp11-kit0 amd64 0.12-2ubuntu1 [34.3 kB] 108 | Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3 amd64 2.10-1ubuntu1.1 [43.3 kB] 109 | Get:8 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls26 amd64 2.12.14-5ubuntu3.7 [459 kB] 110 | Get:9 http://archive.ubuntu.com/ubuntu/ precise-updates/main libkrb5support0 amd64 1.10+dfsg~beta1-2ubuntu0.3 [23.8 kB] 111 | Get:10 http://archive.ubuntu.com/ubuntu/ precise-updates/main libk5crypto3 amd64 1.10+dfsg~beta1-2ubuntu0.3 [80.1 kB] 112 | Get:11 http://archive.ubuntu.com/ubuntu/ precise/main libkeyutils1 amd64 1.5.2-2 [7862 B] 113 | Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main libkrb5-3 amd64 1.10+dfsg~beta1-2ubuntu0.3 [355 kB] 114 | Get:13 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgssapi-krb5-2 amd64 1.10+dfsg~beta1-2ubuntu0.3 [118 kB] 115 | Get:14 http://archive.ubuntu.com/ubuntu/ precise-updates/main libhcrypto4-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [103 kB] 116 | Get:15 http://archive.ubuntu.com/ubuntu/ precise-updates/main libheimbase1-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [33.1 kB] 117 | Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main libwind0-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [77.8 kB] 118 | Get:17 http://archive.ubuntu.com/ubuntu/ precise-updates/main libhx509-5-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [125 kB] 119 | Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/main libkrb5-26-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [234 kB] 120 | Get:19 http://archive.ubuntu.com/ubuntu/ precise-updates/main libheimntlm0-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [16.0 kB] 121 | Get:20 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgssapi3-heimdal amd64 1.6~git20120311.dfsg.1-2ubuntu0.1 [108 kB] 122 | Get:21 http://archive.ubuntu.com/ubuntu/ precise/main libidn11 amd64 1.23-2 [112 kB] 123 | Get:22 http://archive.ubuntu.com/ubuntu/ precise-updates/main libsasl2-2 amd64 2.1.25.dfsg1-3ubuntu0.1 [69.1 kB] 124 | Get:23 http://archive.ubuntu.com/ubuntu/ precise-updates/main libldap-2.4-2 amd64 2.4.28-1.1ubuntu4.4 [185 kB] 125 | Get:24 http://archive.ubuntu.com/ubuntu/ precise/main librtmp0 amd64 2.4~20110711.gitc28f1bab-1 [57.1 kB] 126 | Get:25 http://archive.ubuntu.com/ubuntu/ precise-updates/main openssl amd64 1.0.1-4ubuntu5.13 [524 kB] 127 | Get:26 http://archive.ubuntu.com/ubuntu/ precise-updates/main ca-certificates all 20130906ubuntu0.12.04.1 [192 kB] 128 | Get:27 http://archive.ubuntu.com/ubuntu/ precise-updates/main libcurl3 amd64 7.22.0-3ubuntu4.8 [237 kB] 129 | Get:28 http://archive.ubuntu.com/ubuntu/ precise-updates/main libexpat1 amd64 2.0.1-7.2ubuntu1.1 [131 kB] 130 | Get:29 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minimal amd64 2.7.3-0ubuntu3.5 [1743 kB] 131 | Get:30 http://archive.ubuntu.com/ubuntu/ precise-updates/main libmagic1 amd64 5.09-2ubuntu0.3 [217 kB] 132 | Get:31 http://archive.ubuntu.com/ubuntu/ precise-updates/main file amd64 5.09-2ubuntu0.3 [19.7 kB] 133 | Get:32 http://archive.ubuntu.com/ubuntu/ precise/main mime-support all 3.51-1ubuntu1 [30.7 kB] 134 | Get:33 http://archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 amd64 2.7.3-0ubuntu3.5 [2675 kB] 135 | Get:34 http://archive.ubuntu.com/ubuntu/ precise-updates/main python amd64 2.7.3-0ubuntu2.2 [168 kB] 136 | Get:35 http://archive.ubuntu.com/ubuntu/ precise-updates/main krb5-locales all 1.10+dfsg~beta1-2ubuntu0.3 [9204 B] 137 | Get:36 http://archive.ubuntu.com/ubuntu/ precise-updates/main libsasl2-modules amd64 2.1.25.dfsg1-3ubuntu0.1 [63.2 kB] 138 | Get:37 http://archive.ubuntu.com/ubuntu/ precise/main wget amd64 1.13.4-2ubuntu1 [277 kB] 139 | Get:38 http://archive.ubuntu.com/ubuntu/ precise-updates/main curl amd64 7.22.0-3ubuntu4.8 [138 kB] 140 | Get:39 http://archive.ubuntu.com/ubuntu/ precise-updates/main python-all amd64 2.7.3-0ubuntu2.2 [912 B] 141 | Get:40 http://archive.ubuntu.com/ubuntu/ precise/main python-pkg-resources all 0.6.24-1ubuntu1 [63.1 kB] 142 | Get:41 http://archive.ubuntu.com/ubuntu/ precise/main python-setuptools all 0.6.24-1ubuntu1 [441 kB] 143 | Get:42 http://archive.ubuntu.com/ubuntu/ precise/universe python-pip all 1.0-1build1 [95.1 kB] 144 | debconf: delaying package configuration, since apt-utils is not installed 145 | Fetched 10.2 MB in 2min 15s (75.3 kB/s) 146 | Selecting previously unselected package libsqlite3-0. 147 | (Reading database ... 7569 files and directories currently installed.) 148 | Unpacking libsqlite3-0 (from .../libsqlite3-0_3.7.9-2ubuntu1.1_amd64.deb) ... 149 | Selecting previously unselected package libroken18-heimdal. 150 | Unpacking libroken18-heimdal (from .../libroken18-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 151 | Selecting previously unselected package libasn1-8-heimdal. 152 | Unpacking libasn1-8-heimdal (from .../libasn1-8-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 153 | Selecting previously unselected package libgpg-error0. 154 | Unpacking libgpg-error0 (from .../libgpg-error0_1.10-2ubuntu1_amd64.deb) ... 155 | Selecting previously unselected package libgcrypt11. 156 | Unpacking libgcrypt11 (from .../libgcrypt11_1.5.0-3ubuntu0.2_amd64.deb) ... 157 | Selecting previously unselected package libp11-kit0. 158 | Unpacking libp11-kit0 (from .../libp11-kit0_0.12-2ubuntu1_amd64.deb) ... 159 | Selecting previously unselected package libtasn1-3. 160 | Unpacking libtasn1-3 (from .../libtasn1-3_2.10-1ubuntu1.1_amd64.deb) ... 161 | Selecting previously unselected package libgnutls26. 162 | Unpacking libgnutls26 (from .../libgnutls26_2.12.14-5ubuntu3.7_amd64.deb) ... 163 | Selecting previously unselected package libkrb5support0. 164 | Unpacking libkrb5support0 (from .../libkrb5support0_1.10+dfsg~beta1-2ubuntu0.3_amd64.deb) ... 165 | Selecting previously unselected package libk5crypto3. 166 | Unpacking libk5crypto3 (from .../libk5crypto3_1.10+dfsg~beta1-2ubuntu0.3_amd64.deb) ... 167 | Selecting previously unselected package libkeyutils1. 168 | Unpacking libkeyutils1 (from .../libkeyutils1_1.5.2-2_amd64.deb) ... 169 | Selecting previously unselected package libkrb5-3. 170 | Unpacking libkrb5-3 (from .../libkrb5-3_1.10+dfsg~beta1-2ubuntu0.3_amd64.deb) ... 171 | Selecting previously unselected package libgssapi-krb5-2. 172 | Unpacking libgssapi-krb5-2 (from .../libgssapi-krb5-2_1.10+dfsg~beta1-2ubuntu0.3_amd64.deb) ... 173 | Selecting previously unselected package libhcrypto4-heimdal. 174 | Unpacking libhcrypto4-heimdal (from .../libhcrypto4-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 175 | Selecting previously unselected package libheimbase1-heimdal. 176 | Unpacking libheimbase1-heimdal (from .../libheimbase1-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 177 | Selecting previously unselected package libwind0-heimdal. 178 | Unpacking libwind0-heimdal (from .../libwind0-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 179 | Selecting previously unselected package libhx509-5-heimdal. 180 | Unpacking libhx509-5-heimdal (from .../libhx509-5-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 181 | Selecting previously unselected package libkrb5-26-heimdal. 182 | Unpacking libkrb5-26-heimdal (from .../libkrb5-26-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 183 | Selecting previously unselected package libheimntlm0-heimdal. 184 | Unpacking libheimntlm0-heimdal (from .../libheimntlm0-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 185 | Selecting previously unselected package libgssapi3-heimdal. 186 | Unpacking libgssapi3-heimdal (from .../libgssapi3-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ... 187 | Selecting previously unselected package libidn11. 188 | Unpacking libidn11 (from .../libidn11_1.23-2_amd64.deb) ... 189 | Selecting previously unselected package libsasl2-2. 190 | Unpacking libsasl2-2 (from .../libsasl2-2_2.1.25.dfsg1-3ubuntu0.1_amd64.deb) ... 191 | Selecting previously unselected package libldap-2.4-2. 192 | Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.28-1.1ubuntu4.4_amd64.deb) ... 193 | Selecting previously unselected package librtmp0. 194 | Unpacking librtmp0 (from .../librtmp0_2.4~20110711.gitc28f1bab-1_amd64.deb) ... 195 | Selecting previously unselected package openssl. 196 | Unpacking openssl (from .../openssl_1.0.1-4ubuntu5.13_amd64.deb) ... 197 | Selecting previously unselected package ca-certificates. 198 | Unpacking ca-certificates (from .../ca-certificates_20130906ubuntu0.12.04.1_all.deb) ... 199 | Selecting previously unselected package libcurl3. 200 | Unpacking libcurl3 (from .../libcurl3_7.22.0-3ubuntu4.8_amd64.deb) ... 201 | Selecting previously unselected package libexpat1. 202 | Unpacking libexpat1 (from .../libexpat1_2.0.1-7.2ubuntu1.1_amd64.deb) ... 203 | Preparing to replace python2.7-minimal 2.7.3-0ubuntu3.4 (using .../python2.7-minimal_2.7.3-0ubuntu3.5_amd64.deb) ... 204 | Unpacking replacement python2.7-minimal ... 205 | Setting up python2.7-minimal (2.7.3-0ubuntu3.5) ... 206 | Selecting previously unselected package libmagic1. 207 | (Reading database ... 8040 files and directories currently installed.) 208 | Unpacking libmagic1 (from .../libmagic1_5.09-2ubuntu0.3_amd64.deb) ... 209 | Selecting previously unselected package file. 210 | Unpacking file (from .../file_5.09-2ubuntu0.3_amd64.deb) ... 211 | Selecting previously unselected package mime-support. 212 | Unpacking mime-support (from .../mime-support_3.51-1ubuntu1_all.deb) ... 213 | Selecting previously unselected package python2.7. 214 | Unpacking python2.7 (from .../python2.7_2.7.3-0ubuntu3.5_amd64.deb) ... 215 | Selecting previously unselected package python. 216 | Unpacking python (from .../python_2.7.3-0ubuntu2.2_amd64.deb) ... 217 | Selecting previously unselected package krb5-locales. 218 | Unpacking krb5-locales (from .../krb5-locales_1.10+dfsg~beta1-2ubuntu0.3_all.deb) ... 219 | Selecting previously unselected package libsasl2-modules. 220 | Unpacking libsasl2-modules (from .../libsasl2-modules_2.1.25.dfsg1-3ubuntu0.1_amd64.deb) ... 221 | Selecting previously unselected package wget. 222 | Unpacking wget (from .../wget_1.13.4-2ubuntu1_amd64.deb) ... 223 | Selecting previously unselected package curl. 224 | Unpacking curl (from .../curl_7.22.0-3ubuntu4.8_amd64.deb) ... 225 | Selecting previously unselected package python-all. 226 | Unpacking python-all (from .../python-all_2.7.3-0ubuntu2.2_amd64.deb) ... 227 | Selecting previously unselected package python-pkg-resources. 228 | Unpacking python-pkg-resources (from .../python-pkg-resources_0.6.24-1ubuntu1_all.deb) ... 229 | Selecting previously unselected package python-setuptools. 230 | Unpacking python-setuptools (from .../python-setuptools_0.6.24-1ubuntu1_all.deb) ... 231 | Selecting previously unselected package python-pip. 232 | Unpacking python-pip (from .../python-pip_1.0-1build1_all.deb) ... 233 | Setting up libsqlite3-0 (3.7.9-2ubuntu1.1) ... 234 | Setting up libroken18-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 235 | Setting up libasn1-8-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 236 | Setting up libgpg-error0 (1.10-2ubuntu1) ... 237 | Setting up libgcrypt11 (1.5.0-3ubuntu0.2) ... 238 | Setting up libp11-kit0 (0.12-2ubuntu1) ... 239 | Setting up libtasn1-3 (2.10-1ubuntu1.1) ... 240 | Setting up libgnutls26 (2.12.14-5ubuntu3.7) ... 241 | Setting up libkrb5support0 (1.10+dfsg~beta1-2ubuntu0.3) ... 242 | Setting up libk5crypto3 (1.10+dfsg~beta1-2ubuntu0.3) ... 243 | Setting up libkeyutils1 (1.5.2-2) ... 244 | Setting up libkrb5-3 (1.10+dfsg~beta1-2ubuntu0.3) ... 245 | Setting up libgssapi-krb5-2 (1.10+dfsg~beta1-2ubuntu0.3) ... 246 | Setting up libhcrypto4-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 247 | Setting up libheimbase1-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 248 | Setting up libwind0-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 249 | Setting up libhx509-5-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 250 | Setting up libkrb5-26-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 251 | Setting up libheimntlm0-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 252 | Setting up libgssapi3-heimdal (1.6~git20120311.dfsg.1-2ubuntu0.1) ... 253 | Setting up libidn11 (1.23-2) ... 254 | Setting up libsasl2-2 (2.1.25.dfsg1-3ubuntu0.1) ... 255 | Setting up libldap-2.4-2 (2.4.28-1.1ubuntu4.4) ... 256 | Setting up librtmp0 (2.4~20110711.gitc28f1bab-1) ... 257 | Setting up openssl (1.0.1-4ubuntu5.13) ... 258 | Setting up ca-certificates (20130906ubuntu0.12.04.1) ... 259 | Updating certificates in /etc/ssl/certs... 164 added, 0 removed; done. 260 | Running hooks in /etc/ca-certificates/update.d....done. 261 | Setting up libcurl3 (7.22.0-3ubuntu4.8) ... 262 | Setting up libexpat1 (2.0.1-7.2ubuntu1.1) ... 263 | Setting up libmagic1 (5.09-2ubuntu0.3) ... 264 | Setting up file (5.09-2ubuntu0.3) ... 265 | Setting up mime-support (3.51-1ubuntu1) ... 266 | update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode. 267 | Setting up python2.7 (2.7.3-0ubuntu3.5) ... 268 | Setting up python (2.7.3-0ubuntu2.2) ... 269 | Setting up krb5-locales (1.10+dfsg~beta1-2ubuntu0.3) ... 270 | Setting up libsasl2-modules (2.1.25.dfsg1-3ubuntu0.1) ... 271 | Setting up wget (1.13.4-2ubuntu1) ... 272 | Setting up curl (7.22.0-3ubuntu4.8) ... 273 | Setting up python-all (2.7.3-0ubuntu2.2) ... 274 | Setting up python-pkg-resources (0.6.24-1ubuntu1) ... 275 | Setting up python-setuptools (0.6.24-1ubuntu1) ... 276 | Setting up python-pip (1.0-1build1) ... 277 | Processing triggers for libc-bin ... 278 | ldconfig deferred processing now taking place 279 | ---> bdec6cbe8424 280 | Removing intermediate container 761a93d84d4f 281 | Step 4 : ADD ./webapp /opt/webapp/ 282 | ---> 0a58cbf7a48e 283 | Removing intermediate container 0f3b5c7781d3 284 | Step 5 : WORKDIR /opt/webapp 285 | ---> Running in ffc249029fc2 286 | ---> fb203c4d0583 287 | Removing intermediate container ffc249029fc2 288 | Step 6 : RUN pip install -r requirements.txt 289 | ---> Running in cce5571966d8 290 | Downloading/unpacking Flask==0.8 (from -r requirements.txt (line 1)) 291 | Running setup.py egg_info for package Flask 292 | 293 | warning: no files found matching '*' under directory 'tests' 294 | warning: no previously-included files matching '*.pyc' found under directory 'docs' 295 | warning: no previously-included files matching '*.pyo' found under directory 'docs' 296 | warning: no previously-included files matching '*.pyc' found under directory 'tests' 297 | warning: no previously-included files matching '*.pyo' found under directory 'tests' 298 | warning: no previously-included files matching '*.pyc' found under directory 'examples' 299 | warning: no previously-included files matching '*.pyo' found under directory 'examples' 300 | no previously-included directories found matching 'docs/_build' 301 | no previously-included directories found matching 'docs/_themes/.git' 302 | Downloading/unpacking Jinja2==2.6 (from -r requirements.txt (line 2)) 303 | Running setup.py egg_info for package Jinja2 304 | 305 | warning: no previously-included files matching '*' found under directory 'docs/_build' 306 | warning: no previously-included files matching '*.pyc' found under directory 'jinja2' 307 | warning: no previously-included files matching '*.pyc' found under directory 'docs' 308 | warning: no previously-included files matching '*.pyo' found under directory 'jinja2' 309 | warning: no previously-included files matching '*.pyo' found under directory 'docs' 310 | Downloading/unpacking Werkzeug==0.8.3 (from -r requirements.txt (line 3)) 311 | Running setup.py egg_info for package Werkzeug 312 | 313 | warning: no files found matching '*' under directory 'werkzeug/debug/templates' 314 | warning: no files found matching '*' under directory 'tests' 315 | warning: no previously-included files matching '*.pyc' found under directory 'docs' 316 | warning: no previously-included files matching '*.pyo' found under directory 'docs' 317 | warning: no previously-included files matching '*.pyc' found under directory 'tests' 318 | warning: no previously-included files matching '*.pyo' found under directory 'tests' 319 | warning: no previously-included files matching '*.pyc' found under directory 'examples' 320 | warning: no previously-included files matching '*.pyo' found under directory 'examples' 321 | no previously-included directories found matching 'docs/_build' 322 | Downloading/unpacking distribute==0.6.14 (from -r requirements.txt (line 4)) 323 | Running setup.py egg_info for package distribute 324 | 325 | Requirement already satisfied (use --upgrade to upgrade): wsgiref==0.1.2 in /usr/lib/python2.7 (from -r requirements.txt (line 5)) 326 | Installing collected packages: Flask, Jinja2, Werkzeug, distribute 327 | Running setup.py install for Flask 328 | 329 | warning: no files found matching '*' under directory 'tests' 330 | warning: no previously-included files matching '*.pyc' found under directory 'docs' 331 | warning: no previously-included files matching '*.pyo' found under directory 'docs' 332 | warning: no previously-included files matching '*.pyc' found under directory 'tests' 333 | warning: no previously-included files matching '*.pyo' found under directory 'tests' 334 | warning: no previously-included files matching '*.pyc' found under directory 'examples' 335 | warning: no previously-included files matching '*.pyo' found under directory 'examples' 336 | no previously-included directories found matching 'docs/_build' 337 | no previously-included directories found matching 'docs/_themes/.git' 338 | Running setup.py install for Jinja2 339 | 340 | warning: no previously-included files matching '*' found under directory 'docs/_build' 341 | warning: no previously-included files matching '*.pyc' found under directory 'jinja2' 342 | warning: no previously-included files matching '*.pyc' found under directory 'docs' 343 | warning: no previously-included files matching '*.pyo' found under directory 'jinja2' 344 | warning: no previously-included files matching '*.pyo' found under directory 'docs' 345 | Running setup.py install for Werkzeug 346 | 347 | warning: no files found matching '*' under directory 'werkzeug/debug/templates' 348 | warning: no files found matching '*' under directory 'tests' 349 | warning: no previously-included files matching '*.pyc' found under directory 'docs' 350 | warning: no previously-included files matching '*.pyo' found under directory 'docs' 351 | warning: no previously-included files matching '*.pyc' found under directory 'tests' 352 | warning: no previously-included files matching '*.pyo' found under directory 'tests' 353 | warning: no previously-included files matching '*.pyc' found under directory 'examples' 354 | warning: no previously-included files matching '*.pyo' found under directory 'examples' 355 | no previously-included directories found matching 'docs/_build' 356 | Found existing installation: distribute 0.6.24dev-r0 357 | Uninstalling distribute: 358 | Successfully uninstalled distribute 359 | Running setup.py install for distribute 360 | Before install bootstrap. 361 | Scanning installed packages 362 | Setuptools installation detected at /usr/lib/python2.7/dist-packages 363 | Non-egg installation 364 | Removing elements out of the way... 365 | Already patched. 366 | /usr/lib/python2.7/dist-packages/setuptools.egg-info already patched. 367 | 368 | Installing easy_install script to /usr/local/bin 369 | Installing easy_install-2.7 script to /usr/local/bin 370 | After install bootstrap. 371 | Creating /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg-info 372 | Creating /usr/local/lib/python2.7/dist-packages/setuptools.pth 373 | Successfully installed Flask Jinja2 Werkzeug distribute 374 | Cleaning up... 375 | ---> d567e85a9218 376 | Removing intermediate container cce5571966d8 377 | Step 7 : EXPOSE 5000 378 | ---> Running in ca23817066f8 379 | ---> 7a096d30b6d8 380 | Removing intermediate container ca23817066f8 381 | Step 8 : CMD ["python", "app.py"] 382 | ---> Running in 5fb9d6eaeaf7 383 | ---> c37964b0e486 384 | Removing intermediate container 5fb9d6eaeaf7 385 | Successfully built c37964b0e486 386 | Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered 387 | Triggering a new build of ha:AAAApR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAyREgYp/az8JP2SosTMPKB+3fLUpMSCAt2S1OISfQCDkRGlzwAAAA==training-webapp-test #1 388 | Finished: SUCCESS 389 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/2014-05-23_17-14-48/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | origin/master 13 | 14 | 15 | 44d5db927304b09a9967937be88b4ca04a52214f 16 | 17 | 18 | 19 | origin/master 20 | 21 | 22 | 23 | 24 | 2 25 | 26 | 27 | 28 | 29 | 30 | 31 | https://github.com/huslage/webapp.git 32 | 33 | 34 | 35 | 36 | 37 | origin/master 38 | 39 | 40 | 41 | /opt/jenkins/data/jobs/training-webapp-build/workspace 42 | 43 | 44 | 45 | 2 46 | 1400865288723 47 | SUCCESS 48 | #2 huslage/webapp-1 49 | 2780 50 | US-ASCII 51 | false 52 | 53 | /opt/jenkins/data/jobs/training-webapp-build/workspace 54 | 1.563 55 | 56 | false 57 | 58 | 59 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/2014-05-23_17-14-48/changelog.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docker-training/jenkins/738aad7c6ffb7f0361e6f4b62262bc849f6a49b9/jenkins/jobs/training-webapp-build/builds/2014-05-23_17-14-48/changelog.xml -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/2014-05-23_17-14-48/log: -------------------------------------------------------------------------------- 1 | Started by user ha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==anonymous 2 | Building in workspace /opt/jenkins/data/jobs/training-webapp-build/workspace 3 | > git rev-parse --is-inside-work-tree 4 | Fetching changes from the remote Git repository 5 | > git config remote.origin.url https://github.com/huslage/webapp.git 6 | Fetching upstream changes from https://github.com/huslage/webapp.git 7 | > git --version 8 | > git fetch --tags --progress https://github.com/huslage/webapp.git +refs/heads/*:refs/remotes/origin/* 9 | > git rev-parse origin/master^{commit} 10 | Checking out Revision 44d5db927304b09a9967937be88b4ca04a52214f (origin/master) 11 | > git config core.sparsecheckout 12 | > git checkout -f 44d5db927304b09a9967937be88b4ca04a52214f 13 | > git rev-list 44d5db927304b09a9967937be88b4ca04a52214f 14 | No credentials provided, so not logging in to the registry. 15 | [workspace] $ docker build -t huslage/webapp-1 . 16 | Uploading context 89.09 kB 17 | Uploading context 18 | Step 0 : FROM ubuntu:12.04 19 | ---> 74fe38d11401 20 | Step 1 : MAINTAINER Docker Education Team 21 | ---> Using cache 22 | ---> ba88068e5869 23 | Step 2 : RUN apt-get update 24 | ---> Using cache 25 | ---> a22908af82c8 26 | Step 3 : RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q curl python-all python-pip wget 27 | ---> Using cache 28 | ---> bdec6cbe8424 29 | Step 4 : ADD ./webapp /opt/webapp/ 30 | ---> Using cache 31 | ---> 0a58cbf7a48e 32 | Step 5 : WORKDIR /opt/webapp 33 | ---> Using cache 34 | ---> fb203c4d0583 35 | Step 6 : RUN pip install -r requirements.txt 36 | ---> Using cache 37 | ---> d567e85a9218 38 | Step 7 : EXPOSE 5000 39 | ---> Using cache 40 | ---> 7a096d30b6d8 41 | Step 8 : CMD ["python", "app.py"] 42 | ---> Using cache 43 | ---> c37964b0e486 44 | Successfully built c37964b0e486 45 | Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered 46 | Triggering a new build of ha:AAAApR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAyREgYp/az8JP2SosTMPKB+3fLUpMSCAt2S1OISfQCDkRGlzwAAAA==training-webapp-test #2 47 | Finished: SUCCESS 48 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/lastFailedBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/lastStableBuild: -------------------------------------------------------------------------------- 1 | 2 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/lastSuccessfulBuild: -------------------------------------------------------------------------------- 1 | 2 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/lastUnstableBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/builds/lastUnsuccessfulBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | 8 | https://github.com/docker-training/webapp/ 9 | 10 | 11 | 12 | 2 13 | 14 | 15 | https://github.com/@@GHUSER@@/webapp.git 16 | 17 | 18 | 19 | 20 | */master 21 | 22 | 23 | false 24 | 25 | 26 | 27 | true 28 | false 29 | false 30 | false 31 | 32 | 33 | 34 | 35 | 36 | false 37 | 38 | 39 | @@DHUSER@@/webapp 40 | false 41 | 42 | true 43 | 44 | 45 | 46 | 47 | training-webapp-test 48 | 49 | SUCCESS 50 | 0 51 | BLUE 52 | true 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/lastStable: -------------------------------------------------------------------------------- 1 | builds/lastStableBuild -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/lastSuccessful: -------------------------------------------------------------------------------- 1 | builds/lastSuccessfulBuild -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-build/nextBuildNumber: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/1: -------------------------------------------------------------------------------- 1 | 2014-05-23_17-09-25 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/2: -------------------------------------------------------------------------------- 1 | 2014-05-23_17-16-56 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/2014-05-23_17-09-25/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 1 11 | 1400864965993 12 | SUCCESS 13 | 113 14 | US-ASCII 15 | false 16 | 17 | /opt/jenkins/data/jobs/training-webapp-deploy/workspace 18 | 1.563 19 | 20 | 21 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/2014-05-23_17-09-25/changelog.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/2014-05-23_17-09-25/log: -------------------------------------------------------------------------------- 1 | Started by user ha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==anonymous 2 | Building in workspace /opt/jenkins/data/jobs/training-webapp-deploy/workspace 3 | [workspace] $ /bin/sh -xe /tmp/hudson653421855787251603.sh 4 | Finished: SUCCESS 5 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/2014-05-23_17-16-56/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 2 11 | 1400865416032 12 | SUCCESS 13 | 123 14 | US-ASCII 15 | false 16 | 17 | /opt/jenkins/data/jobs/training-webapp-deploy/workspace 18 | 1.563 19 | 20 | 21 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/2014-05-23_17-16-56/changelog.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/2014-05-23_17-16-56/log: -------------------------------------------------------------------------------- 1 | Started by user ha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==anonymous 2 | Building in workspace /opt/jenkins/data/jobs/training-webapp-deploy/workspace 3 | [workspace] $ /bin/sh -xe /tmp/hudson6227964221422743232.sh 4 | Finished: SUCCESS 5 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/lastFailedBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/lastStableBuild: -------------------------------------------------------------------------------- 1 | 2 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/lastSuccessfulBuild: -------------------------------------------------------------------------------- 1 | 2 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/lastUnstableBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/builds/lastUnsuccessfulBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | 8 | https://github.com/@@GHUSER@@/webapp/ 9 | 10 | 11 | 12 | true 13 | false 14 | false 15 | false 16 | 17 | false 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/lastStable: -------------------------------------------------------------------------------- 1 | builds/lastStableBuild -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/lastSuccessful: -------------------------------------------------------------------------------- 1 | builds/lastSuccessfulBuild -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-deploy/nextBuildNumber: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/1: -------------------------------------------------------------------------------- 1 | 2014-05-23_17-07-55 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/2: -------------------------------------------------------------------------------- 1 | 2014-05-23_17-15-01 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/2014-05-23_17-07-55/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | training-webapp-build 8 | job/training-webapp-build/ 9 | 1 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 1 18 | 1400864875978 19 | SUCCESS 20 | 6554 21 | US-ASCII 22 | false 23 | 24 | /opt/jenkins/data/jobs/training-webapp-test/workspace 25 | 1.563 26 | 27 | 28 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/2014-05-23_17-07-55/changelog.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/2014-05-23_17-07-55/log: -------------------------------------------------------------------------------- 1 | Started by upstream project "ha:AAAAph+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZp/az8JP2SosTMPKB+3fLUpMSCAt2k0sycFH0A6qHmidAAAAA=training-webapp-build" build number ha:AAAAph+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLQIwSBhn9rPwk/ZKixMw8oH7d8tSkxIIC3aTSzJwUfUMADn8/XdEAAAA=1 2 | originally caused by: 3 | Started by user ha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==anonymous 4 | Building in workspace /opt/jenkins/data/jobs/training-webapp-test/workspace 5 | [workspace] $ /bin/sh -xe /tmp/hudson3122061799324723182.sh 6 | + docker run --rm -it huslage/webapp-1 /usr/bin/python /opt/webapp/tests.py 7 | Finished: SUCCESS 8 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/2014-05-23_17-15-01/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | training-webapp-build 8 | job/training-webapp-build/ 9 | 2 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2 18 | 1400865301021 19 | SUCCESS 20 | 6344 21 | US-ASCII 22 | false 23 | 24 | /opt/jenkins/data/jobs/training-webapp-test/workspace 25 | 1.563 26 | 27 | 28 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/2014-05-23_17-15-01/changelog.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/2014-05-23_17-15-01/log: -------------------------------------------------------------------------------- 1 | Started by upstream project "ha:AAAAph+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzREgZp/az8JP2SosTMPKB+3fLUpMSCAt2k0sycFH0A6qHmidAAAAA=training-webapp-build" build number ha:AAAAph+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLQIwSBhn9rPwk/ZKixMw8oH7d8tSkxIIC3aTSzJwUfSMAtC42xNEAAAA=2 2 | originally caused by: 3 | Started by user ha:AAAAlh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvwAAAA==anonymous 4 | Building in workspace /opt/jenkins/data/jobs/training-webapp-test/workspace 5 | [workspace] $ /bin/sh -xe /tmp/hudson6478813516780897404.sh 6 | + docker run --rm -it huslage/webapp-1 /usr/bin/python /opt/webapp/tests.py 7 | Finished: SUCCESS 8 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/lastFailedBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/lastStableBuild: -------------------------------------------------------------------------------- 1 | 2 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/lastSuccessfulBuild: -------------------------------------------------------------------------------- 1 | 2 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/lastUnstableBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/builds/lastUnsuccessfulBuild: -------------------------------------------------------------------------------- 1 | -1 -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | 8 | https://github.com/@@GHUSER@@/webapp/ 9 | 10 | 11 | 12 | 13 | HTTP 14 | JSON 15 | 16 | 17 | 18 | 19 | 20 | 21 | true 22 | false 23 | false 24 | false 25 | 26 | false 27 | 28 | 29 | 30 | docker pull @@DHUSER@@/webapp:latest 31 | docker run --rm -it @@DHUSER@@/webapp /usr/bin/python /opt/webapp/tests.py 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/lastStable: -------------------------------------------------------------------------------- 1 | builds/lastStableBuild -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/lastSuccessful: -------------------------------------------------------------------------------- 1 | builds/lastSuccessfulBuild -------------------------------------------------------------------------------- /jenkins/jobs/training-webapp-test/nextBuildNumber: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /runjenkins.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [[ -z $DOCKERHUB_ID || -z $DOCKERHUB_EMAIL || -z $GITHUB_ID ]] ; then 4 | echo "ERROR: DOCKERHUB_ID, DOCKERHUB_EMAIL and GITHUB_ID environment variables must be set." 5 | exit 1 6 | fi 7 | 8 | find /opt/jenkins/data -type f | xargs sed -i -e "s/@@DHUSER@@/${DOCKERHUB_ID}/g" 9 | find /opt/jenkins/data -type f | xargs sed -i -e "s/@@DHEMAIL@@/${DOCKERHUB_EMAIL}/g" 10 | find /opt/jenkins/data -type f | xargs sed -i -e "s/@@GHUSER@@/${GITHUB_ID}/g" 11 | 12 | java -jar /opt/jenkins/jenkins.war 13 | -------------------------------------------------------------------------------- /supervisor.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon=true 3 | 4 | [include] 5 | files = /etc/supervisor/conf.d/*.conf 6 | -------------------------------------------------------------------------------- /wrapdocker: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # First, make sure that cgroups are mounted correctly. 4 | CGROUP=/sys/fs/cgroup 5 | 6 | [ -d $CGROUP ] || 7 | mkdir $CGROUP 8 | 9 | mountpoint -q $CGROUP || 10 | mount -n -t tmpfs -o uid=0,gid=0,mode=0755 cgroup $CGROUP || { 11 | echo "Could not make a tmpfs mount. Did you use -privileged?" 12 | exit 1 13 | } 14 | 15 | if [ -d /sys/kernel/security ] && ! mountpoint -q /sys/kernel/security 16 | then 17 | mount -t securityfs none /sys/kernel/security || { 18 | echo "Could not mount /sys/kernel/security." 19 | echo "AppArmor detection and -privileged mode might break." 20 | } 21 | fi 22 | 23 | # Mount the cgroup hierarchies exactly as they are in the parent system. 24 | for SUBSYS in $(cut -d: -f2 /proc/1/cgroup) 25 | do 26 | [ -d $CGROUP/$SUBSYS ] || mkdir $CGROUP/$SUBSYS 27 | mountpoint -q $CGROUP/$SUBSYS || 28 | mount -n -t cgroup -o $SUBSYS cgroup $CGROUP/$SUBSYS 29 | 30 | # The two following sections address a bug which manifests itself 31 | # by a cryptic "lxc-start: no ns_cgroup option specified" when 32 | # trying to start containers withina container. 33 | # The bug seems to appear when the cgroup hierarchies are not 34 | # mounted on the exact same directories in the host, and in the 35 | # container. 36 | 37 | # Named, control-less cgroups are mounted with "-o name=foo" 38 | # (and appear as such under /proc//cgroup) but are usually 39 | # mounted on a directory named "foo" (without the "name=" prefix). 40 | # Systemd and OpenRC (and possibly others) both create such a 41 | # cgroup. To avoid the aforementioned bug, we symlink "foo" to 42 | # "name=foo". This shouldn't have any adverse effect. 43 | echo $SUBSYS | grep -q ^name= && { 44 | NAME=$(echo $SUBSYS | sed s/^name=//) 45 | ln -s $SUBSYS $CGROUP/$NAME 46 | } 47 | 48 | # Likewise, on at least one system, it has been reported that 49 | # systemd would mount the CPU and CPU accounting controllers 50 | # (respectively "cpu" and "cpuacct") with "-o cpuacct,cpu" 51 | # but on a directory called "cpu,cpuacct" (note the inversion 52 | # in the order of the groups). This tries to work around it. 53 | [ $SUBSYS = cpuacct,cpu ] && ln -s $SUBSYS $CGROUP/cpu,cpuacct 54 | done 55 | 56 | # Note: as I write those lines, the LXC userland tools cannot setup 57 | # a "sub-container" properly if the "devices" cgroup is not in its 58 | # own hierarchy. Let's detect this and issue a warning. 59 | grep -q :devices: /proc/1/cgroup || 60 | echo "WARNING: the 'devices' cgroup should be in its own hierarchy." 61 | grep -qw devices /proc/1/cgroup || 62 | echo "WARNING: it looks like the 'devices' cgroup is not mounted." 63 | 64 | # Now, close extraneous file descriptors. 65 | pushd /proc/self/fd >/dev/null 66 | for FD in * 67 | do 68 | case "$FD" in 69 | # Keep stdin/stdout/stderr 70 | [012]) 71 | ;; 72 | # Nuke everything else 73 | *) 74 | eval exec "$FD>&-" 75 | ;; 76 | esac 77 | done 78 | popd >/dev/null 79 | 80 | 81 | # If a pidfile is still around (for example after a container restart), 82 | # delete it so that docker can start. 83 | rm -rf /var/run/docker.pid 84 | 85 | # If we were given a PORT environment variable, start as a simple daemon; 86 | # otherwise, spawn a shell as well 87 | if [ "$PORT" ] 88 | then 89 | exec docker -d -H 0.0.0.0:$PORT 90 | else 91 | 92 | docker -d & 93 | exec bash 94 | fi 95 | --------------------------------------------------------------------------------