-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 779 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (20 loc) · 779 Bytes
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
# This selenium docker image already contains webdriver and xvfb
FROM selenium/standalone-chrome
# Update image dependencies and java
USER root
RUN sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update
RUN sudo apt-get install -y openjdk-17-jdk libxkbcommon-x11-0
# To include TESTAR in the docker image, we should have previously compiled testar
# gradlew distTar do this task
ADD testar/target/distributions/testar.tar .
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV DISPLAY=:99
# Prepare the TESTAR files and permissions
COPY runImage /runImage
COPY README.Docker /README.Docker
# Fix to LF EOL in case CRLF is used
RUN sed -i 's/\r$//' /runImage
RUN chmod 777 /runImage
RUN chmod -R 777 /testar
USER seluser
CMD ["sh", "/runImage"]