FROM python:2.7.16

LABEL maintainer="Joakim Olsson <joakim@unbound.se>"
LABEL description="Base image for running Robot Framework test suites in Docker. \
    \
    The image cotains the following Robot Framework libraries:\
    - Appium library - Keywords for Android & IOS device UI tests \
    - Database library - Keywords for SQL queries & statements \
    - HTTP library - Keywords for HTTP & Rest \
    - RabbitMQ library - Keywords for Rabbit MQ \
    - Selenium2 library - Keywords for cross browser tests\
    \
    Drivers:\
    - psycopg2 - Python driver for Postgres \
    - PyMySQL - Python driver for MySQL"

RUN apt-get update && \
        apt-get -y install jq && \
        rm -r /var/lib/apt/lists/* && \
        pip install \
        urllib3==1.22 \
        psycopg2-binary \
        PyMySQL \
        robotframework \
        robotframework-appiumlibrary \
        robotframework-databaselibrary==1.1.1 \
        robotframework-httplibrary \
        robotframework-rabbitmq \
        robotframework-selenium2library
