-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_tester
35 lines (28 loc) · 1.04 KB
/
Dockerfile_tester
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
FROM ubuntu:22.04
# Installing packages
RUN apt-get update && apt-get install -y \
git=1:2.34.1-1ubuntu1.10 \
python3=3.10.6-1~22.04 \
python3-pip=22.0.2+dfsg-1ubuntu0.4 \
wget=1.21.2-2ubuntu1 \
xvfb=2:21.1.4-2ubuntu1.7~22.04.10
# Installing google chrome for selenium tests
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
# Cloning project with web application
RUN git clone https://github.com/moevm/devops-examples.git
WORKDIR devops-examples/EXAMPLE_APP
# Installing dependencies
RUN pip install \
yapf==0.40.2 \
pylint==3.1.0 \
requests==2.31.0 \
pytest==8.1.1 \
selenium==4.19.0 \
webdriver-manager==4.0.1
# Installing python3-tk for copying json on the last stage of selenium_tests
RUN DEBIAN_FRONTEND=noninteractive TZ=Europe/Moscow apt-get install -y python3-tk=3.10.8-1~22.04
# Copying tests files
COPY tests ./tests
# Running the http.server
ENTRYPOINT ["python3", "-m", "http.server", "3000"]