2022-06-20 21:25:22 +00:00
|
|
|
FROM jenkins/inbound-agent:4.10-3
|
2020-01-07 09:32:27 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get upgrade -y \
|
|
|
|
&& apt-get install -y \
|
|
|
|
sudo \
|
|
|
|
libltdl-dev \
|
|
|
|
libgtk-3-0 \
|
|
|
|
libdbus-glib-1-2 \
|
|
|
|
xvfb \
|
2021-02-17 12:40:05 +00:00
|
|
|
default-mysql-client \
|
|
|
|
build-essential \
|
|
|
|
python \
|
2020-01-07 09:32:27 +00:00
|
|
|
vim \
|
2022-03-18 18:34:13 +00:00
|
|
|
wget \
|
2022-06-20 21:25:22 +00:00
|
|
|
curl \
|
2020-01-07 09:32:27 +00:00
|
|
|
&& curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` \
|
|
|
|
-o /usr/local/bin/docker-compose \
|
|
|
|
&& chmod +x /usr/local/bin/docker-compose \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers \
|
2021-04-29 19:01:20 +00:00
|
|
|
&& groupadd -g 998 docker \
|
2020-01-07 09:32:27 +00:00
|
|
|
&& usermod -a -G docker jenkins
|
|
|
|
|
|
|
|
RUN cd /opt \
|
|
|
|
&& wget https://ftp.mozilla.org/pub/firefox/releases/64.0.2/linux-x86_64/en-US/firefox-64.0.2.tar.bz2 \
|
|
|
|
&& tar xvjf firefox-64.0.2.tar.bz2 \
|
|
|
|
&& rm firefox-64.0.2.tar.bz2
|
|
|
|
|
2022-10-14 17:07:10 +00:00
|
|
|
# Fix defunct processeses: https://github.com/jenkinsci/docker-inbound-agent/issues/51
|
|
|
|
ENV TINI_VERSION v0.19.0
|
|
|
|
RUN wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini \
|
|
|
|
&& chmod 755 /tini
|
|
|
|
|
2022-06-20 21:25:22 +00:00
|
|
|
USER jenkins
|
2022-10-14 17:07:10 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/tini", "--", "/usr/local/bin/jenkins-agent"]
|