更新jenkins基础镜像

This commit is contained in:
KennyLee 2019-06-06 18:31:16 +08:00
parent 1973a64713
commit f750ef080f
3 changed files with 6 additions and 17 deletions

View File

@ -1,9 +1,5 @@
# Jenkins # Jenkins
FROM openjdk:8-jdk-stretch FROM registry.cn-hangzhou.aliyuncs.com/kennylee/java:openjdk-8-jdk
# 国内加速
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
COPY stretch.sources.list /etc/apt/sources.list
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y git curl unzip vim wget ant \ && apt-get install -y git curl unzip vim wget ant \

View File

@ -1,8 +0,0 @@
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

View File

@ -16,10 +16,11 @@ RUN sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen
RUN locale && locale-gen "zh_CN.UTF-8" RUN locale && locale-gen "zh_CN.UTF-8"
# Set environment variables. # Set environment variables.
ENV LANG=zh_CN.UTF-8\ ENV LANG=zh_CN.UTF-8 \
LANGUAGE=zh_CN:zh:en_US:en\ LANGUAGE=zh_CN:zh:en_US:en \
LC_ALL=zh_CN.UTF-8\ LC_ALL=zh_CN.UTF-8 \
TZ=Asia/Shanghai\ TZ=Asia/Shanghai \
DEBIAN_FRONTEND="noninteractive" \
TERM=xterm TERM=xterm
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \ RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \