Public Repository

Last pushed: 6 months ago
Short Description
Ubuntu 14.04 with Selenium and Python2.7
Full Description

FROM ubuntu:14.04

ENV BROWSER Firefox
ENV DISPLAY :99

#================================================

Installations

#================================================

RUN apt-get update && apt-get install -y $BROWSER \
build-essential libssl-dev python-setuptools \
vim xvfb xz-utils zlib1g-dev wget

RUN easy_install pip

RUN pip install selenium pyvirtualdisplay requests unittest-xml-reporting

#==================

Vim highlight

#==================

RUN echo "syntax on" >> /etc/vim/vimrc

#==================

Xvfb + init scripts

#==================
ADD libs/xvfb_init /etc/init.d/xvfb
RUN chmod a+x /etc/init.d/xvfb

ADD libs/xvfb-daemon-run /usr/bin/xvfb-daemon-run
RUN chmod a+x /usr/bin/xvfb-daemon-run

RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz
RUN tar -xvzf geckodriver-v0.15.0-linux64.tar.gz
RUN rm geckodriver-v0.15.0-linux64.tar.gz
RUN chmod +x geckodriver
RUN cp geckodriver /usr/local/bin/

#============================

Clean up

#============================
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

Docker Pull Command
Owner
mediasapiens

Comments (0)