Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fail to execute test --> docker run -it --privileged --rm --net=host -v /dev/shm:/dev/shm thisImage:latest bash
FROM jenkinsci/jenkins:2.11
USER root
apt-get update; apt-get upgrade -y -qq; \
apt-get install -y -qq wget; \
apt-get install -y -qq git; \
apt-get install -y -qq tar; \
apt-get install -y -qq curl; \
apt-get clean && rm -rf /v ar/lib/apt/lists/* /tmp/* /var/tmp/*
### Install node + npm packages
RUN curl -sL | bash - && \
apt-get install -y nodejs && \
npm install --global gulp-cli && \
apt-get install -y libfontconfig && \
npm install -g bower && \
npm install -g ionic@beta && \
npm install -g cordova && \
npm install -g typings
#WARN this will break the image / no quick way of using regex.
RUN ln /usr/lib/node_modules/protractor/selenium/chromedriver_2.21 /usr/bin/chromedriver
RUN echo yes | cordova --version
# Install Chromium.
RUN echo "deb stable main" | tee -a /etc/apt/sources.list && \
wget -q -O - | apt-key add - && \
apt-get update && \
apt-get install -y libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 && \
apt-get install -y google-chrome-stable && \
apt-get install -y xvfb gtk2-engines-pixbuf && \
apt-get install -y xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
RUN apt-get install -y imagemagick x11-apps
RUN Xvfb -ac :99 -screen 0 1280x1024x16 & nohup $1 &
#USER jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment