Docker image for jenkins + docker and nodejs installed
989
Docker image for jenkins + docker-ce and nodejs installed
FROM jenkins/jenkins:lts
USER root
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
wget \
vim \
gnupg2 \
sudo \
software-properties-common \
maven \
libxml2-utils \
jq \
--no-install-recommends
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN curl -fsSL https://download.docker.com/linux/debian/gpg > /tmp/dkey; apt-key add /tmp/dkey && \
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose && \
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"
RUN apt-get update && \
apt-get -y install build-essential nodejs --no-install-recommends
RUN apt-get -y install docker-ce --no-install-recommends && \
usermod -aG docker jenkins
RUN npm i -g npm && \
npm i -g yarn && \
npm i -g gulp && \
npm i -g gradle
RUN rm -rf /var/lib/apt/lists/*
RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
RUN chown -R jenkins:jenkins /var/jenkins_home
RUN chown -R jenkins:jenkins /usr/share/jenkins
USER jenkins
WORKDIR /var/jenkins_home
Content type
Image
Digest
Size
757 MB
Last updated
about 6 years ago
docker pull eteration/jenkins