2017-12-07 08:35:46 +00:00
|
|
|
FROM jenkins/jenkins:2.89.1
|
2014-10-03 10:44:49 +00:00
|
|
|
USER root
|
2014-10-06 19:50:25 +00:00
|
|
|
|
2015-01-01 22:04:03 +00:00
|
|
|
RUN bash -c "if ! [ -e /usr/lib/apt/methods/https ]; then apt-get update && apt-get install -y apt-transport-https; fi"
|
2014-10-06 19:50:25 +00:00
|
|
|
|
2017-04-11 12:58:34 +00:00
|
|
|
RUN set -ex \
|
|
|
|
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 \
|
|
|
|
&& sh -c "echo deb [arch=amd64] https://download.docker.com/linux/debian jessie stable > /etc/apt/sources.list.d/docker.list" \
|
|
|
|
&& apt-get update && apt-get install -y docker-ce \
|
2015-07-17 12:42:33 +00:00
|
|
|
&& apt-get install -y sudo \
|
|
|
|
&& echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
2014-10-06 19:50:25 +00:00
|
|
|
|
2014-10-03 10:44:49 +00:00
|
|
|
USER jenkins
|