Dockerfile_test_scenario_environment 963 Bytes
Newer Older
1
# Docker image used as FROM has been generated from ./Dockerfile_base_environment
2
FROM glondu/beleniosbase:20191210-1
3 4

USER root
5 6

# Install firefox-esr (The firefox package is not present in apt repositories of this linux image, so we use firefox-esr)
7
RUN apt-get install -y -qq firefox-esr
8 9

# Install geckodriver (It is needed by selenium to run firefox)
10
ENV GECKODRIVER_VERSION 0.26.0
11
RUN wget --no-verbose -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz && rm -rf /opt/geckodriver && tar -C /opt -zxf /tmp/geckodriver.tar.gz && rm /tmp/geckodriver.tar.gz && mv /opt/geckodriver /opt/geckodriver-$GECKODRIVER_VERSION && chmod 755 /opt/geckodriver-$GECKODRIVER_VERSION && ln -fs /opt/geckodriver-$GECKODRIVER_VERSION /usr/bin/geckodriver
12 13

# Install packages required to run the test scenario
14 15 16
RUN apt-get install -y -qq python3 python3-venv

USER belenios