27 lines
831 B
Docker
27 lines
831 B
Docker
FROM jenkins/jenkins:latest
|
|
|
|
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 \
|
|
mysql-client \
|
|
vim \
|
|
&& 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 \
|
|
&& groupadd -g 999 docker \
|
|
&& 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
|
|
|
|
USER jenkins |