2015-10-30 18:37:33 +08:00
|
|
|
# Jenkins
|
|
|
|
#
|
|
|
|
# VERSION 0.0.1
|
|
|
|
# Authoer: kennylee26
|
|
|
|
# NAME: kennylee26/jenkins
|
|
|
|
# Command format: Instruction [arguments command] ..
|
|
|
|
|
|
|
|
# 第一行必须指定基于的基础镜像
|
2016-11-22 22:08:17 +08:00
|
|
|
FROM jenkinsci/jenkins:2.31
|
2015-10-30 18:37:33 +08:00
|
|
|
|
|
|
|
# 维护者信息
|
|
|
|
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN curl http://mirrors.163.com/.help/sources.list.jessie>/etc/apt/sources.list
|
|
|
|
RUN apt-get -y update
|
|
|
|
# recommend
|
|
|
|
RUN apt-get install -y \
|
|
|
|
curl git unzip vim wget
|
|
|
|
# this image required
|
|
|
|
RUN apt-get install -y ant
|
|
|
|
# clean
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# for main web interface:
|
|
|
|
EXPOSE 8080
|
|
|
|
# will be used by attached slave agents:
|
|
|
|
EXPOSE 50000
|
|
|
|
|
|
|
|
#COPY plugins.txt /usr/share/jenkins/plugins.txt
|
|
|
|
#RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/jenkins.sh"]
|