Public Repository

Last pushed: 13 days ago
Short Description
This image extend from jenkins official.
Full Description

0.5:

  1. Change default port "8080" to "18080".
  2. Update Maven version to 3.5.0

Dockerfile:

FROM jenkins

USER root

ENV JENKINS_OPTS --httpPort=18080
EXPOSE 18080

ENV MAVEN_VERSION 3.5.0

RUN mkdir -p /usr/share/maven \
  && curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \
    | tar -xzC /usr/share/maven --strip-components=1 \
  && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn

ENV MAVEN_HOME /usr/share/maven

VOLUME /root/.m2

# set timezone
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Docker Pull Command
Owner
lynnchow

Comments (0)