Skip to content

Commit 7237272

Browse files
author
Alexandru Meterez
committed
Add dockerfile
1 parent 11de6e5 commit 7237272

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docker/Dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM ubuntu
2+
3+
# Installing build dependencies
4+
RUN apt-get update && apt-get install -y build-essential python3 python3-pip git curl unzip
5+
6+
# Prepare environment UTF-8
7+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
8+
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
9+
locale-gen
10+
ENV LANG en_US.UTF-8
11+
ENV LANGUAGE en_US:en
12+
ENV LC_ALL en_US.UTF-8
13+
14+
# Prepare cube
15+
16+
RUN mkdir /work && \
17+
cd /work && \
18+
git clone https://github.com/adobe/frontend-regression-validator.git
19+
20+
# Install chrome
21+
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add && \
22+
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
23+
apt-get -y update && \
24+
apt-get -y install google-chrome-stable
25+
26+
# Get chromedriver
27+
RUN wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip && \
28+
unzip chromedriver_linux64.zip
29+
30+
# Setup chromedriver as env variable
31+
ENV CHROMEDRIVER_PATH=/work/chromedriver
32+
33+
# Preparing Python build environment
34+
RUN pip3 install -r /work/frontend-regression-validator/requirements.txt
35+
36+
# Start notebook
37+
CMD cd /work/frontend-regression-validator/fred && python3 run.py

0 commit comments

Comments
 (0)