-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
96 lines (90 loc) · 3.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
FROM ubuntu:16.04
MAINTAINER "Ed Sherwin I. Nonog" <[email protected]>
LABEL name="Docker image of robotframework environment."
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
libffi-dev \
python-dev \
python-pip \
python-dev \
gcc \
phantomjs \
firefox \
xvfb \
wget \
ca-certificates \
ntpdate \
libreadline-gplv2-dev \
libncursesw5-dev \
libsqlite3-dev \
libsqlite3-dev \
tk-dev \
libgdbm-dev \
libc6-dev \
libbz2-dev \
unzip \
git \
python-tk
# Installation of Python 2.7.14
RUN cd /usr/src
RUN wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz && tar xzf Python-2.7.14.tgz && cd Python-2.7.14 && ./configure --enable-optimations && make altinstall
# libnss3-dev libxss1 libappindicator3-1 libindicator7 gconf-service libgconf-2-4 libpango1.0-0 xdg-utils fonts-liberation
# Robot Framework and Libraries
RUN apt-get update && pip install \
robotframework \
robotframework-sshlibrary \
robotframework-selenium2library \
robotframework-httplibrary \
robotframework-requests \
robotframework-xvfb \
robotframework-jsonlibrary \
robotframework-faker \
robotframework-excellibrary \
certifi \
urllib3[secure] \
openpyxl \
pyyaml \
Pillow \
ndg-httpsclient \
pyasn1
# Geckodriver & Chromedriver
RUN cd /usr/src \
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz \
tar xvzf geckodriver-v0.11.1-linux64.tar.gz \
rm geckodriver-v0.11.1-linux64.tar.gz \
cp geckodriver /usr/local/bin \
chmod +x /usr/local/bin/geckodriver \
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
dpkg -i google-chrome*.deb \
wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip \
unzip chromedriver_linux64.zip \
cp chromedriver /usr/local/bin \
chmod +x /usr/local/bin/chromedriver
# Installation of Java
# RUN apt-get update -y && apt-get install -y \
# software-properties-common \
# add-apt-repository ppa:webupd8team/java && \
# echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
# echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
# RUN apt-get update && apt-get install -y \
# oracle-java8-installer \
# oracle-java8-set-default \
# apt-get clean
RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-get install -y --no-install-recommends locales && \
locale-gen en_US.UTF-8 && \
apt-get dist-upgrade -y && \
apt-get --purge remove openjdk* && \
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections && \
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" > /etc/apt/sources.list.d/webupd8team-java-trusty.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 && \
apt-get update && \
apt-get install -y --no-install-recommends oracle-java8-installer oracle-java8-set-default && \
apt-get clean all
# Setting up the container and attach to jenkins as build node
#COPY bin/jenkins-agent.sh /usr/src/app
#CMD ["jenkins-agent.sh","start"]