Last active
July 5, 2016 10:23
-
-
Save geoHeil/48cd94bf4d748fd8fd6d25de4c272157 to your computer and use it in GitHub Desktop.
fail to execute test --> docker run -it --privileged --rm --net=host -v /dev/shm:/dev/shm thisImage:latest bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkinsci/jenkins:2.11 | |
MAINTAINER geoHeil | |
USER root | |
RUN \ | |
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 https://deb.nodesource.com/setup_4.x | 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 http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.list && \ | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | 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 & | |
ENV DISPLAY 99 | |
#USER jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment