Sign inSign up

ddebeul/arm_selenium_standalone

By ddebeul

Updated about 6 years ago

This is an adaptation of the nkovacs/selenium-standalone-phantomjs docker file for arm architecture

Image
0

871

ddebeul/arm_selenium_standalone repository overview

This docker file is an adaptation of the nkovacs/selenium-standalone-phantomjs docker file for arm architecture ( raspberry pi 4)

Dockerfile :

FROM ddebeul/arm_selenium:16

RUN apt-get update

-- Timezone settings -- Possible alternative: https://github.com/docker/docker/issues/3359#issuecomment-32150214

ENV TZ "Europe/Brussels" RUN echo "${TZ}" > /etc/timezone

-- PhantomJS

RUN apt-get install bzip2 libfreetype6 libfontconfig1 -y RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 RUN tar -xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 && rm phantomjs-2.1.1-linux-x86_64.tar.bz2 RUN mv /phantomjs-2.1.1-linux-x86_64 /usr/local/phantomjs-2.1.1-linux-x86_64 RUN ln -s /usr/local/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs COPY phantomjs /usr/local/bin/phantomjs RUN chmod a+x /usr/local/bin/phantomjs RUN apt-get clean

-- Some configuration options

ENV SCREEN_WIDTH 1360 ENV SCREEN_HEIGHT 1020 ENV SCREEN_DEPTH 24 ENV DISPLAY :99.0

USER root

-- Scripts to run Selenium Standalone

COPY entry_point.sh /opt/bin/entry_point.sh RUN chmod +x /opt/bin/entry_point.sh

-- phantomjs will write its log here RUN mkdir -p /var/log/selenium && chmod a+w /var/log/selenium

USER seluser

EXPOSE 4444

CMD ["/opt/bin/entry_point.sh"]

Tag summary

Content type

Image

Digest

Size

228.4 MB

Last updated

about 6 years ago

docker pull ddebeul/arm_selenium_standalone