docker-inbound-agent
docker-inbound-agent copied to clipboard
hope debian jdk 11 inbound-agent timezone UTC--->CST
What feature do you want to see added?
[root@xxx debian]#
[root@xxx debian]# pwd
/root/test/docker-inbound-agent-4.10-2/11/debian
[root@xxx debian]# ls
Dockerfile jenkins-agent
// docker build 时需要把jenkins-agent文件拷贝到当前目录下
[root@xxx debian]# cat Dockerfile
ARG version=4.9-1-jdk11
FROM jenkins/agent:$version
**ENV TIME_ZONE Asia/Shanghai**
ARG version
LABEL Description="This is a base image, which allows connecting Jenkins agents via JNLP protocols" Vendor="Jenkins project" Version="$version"
ARG user=jenkins
USER root
RUN apt-get install -y tzdata \
&& ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata \
&& apt-get clean \
&& rm -rf /tmp/* /var/cache/* /usr/share/doc/* /usr/share/man/* /var/lib/apt/lists/*
#COPY ../../jenkins-agent /usr/local/bin/jenkins-agent
COPY ./jenkins-agent /usr/local/bin/jenkins-agent
RUN chmod +x /usr/local/bin/jenkins-agent &&\
ln -s /usr/local/bin/jenkins-agent /usr/local/bin/jenkins-slave
RUN apt-get -y install curl
USER ${user}
ENTRYPOINT ["/usr/local/bin/jenkins-agent"]
Upstream changes
No response