-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (20 loc) · 910 Bytes
/
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
# Author: Sai Karthik <[email protected]>
FROM debian:sid-slim
ARG NEXIAL_VER=4.5_1534
RUN apt update && apt install -y openjdk-19-jdk chromium wget unzip
RUN adduser --disabled-password nexial-user
USER nexial-user
WORKDIR /home/nexial-user/
RUN wget -O nexial.zip https://github.com/nexiality/nexial-core/releases/download/nexial-core-v$NEXIAL_VER/nexial-core-$NEXIAL_VER.zip \
&& unzip -q nexial.zip -d nexial-core \
&& rm nexial.zip
ENV NEXIAL_HOME=/home/nexial-user/nexial-core \
PATH=/home/nexial-user/nexial-core/bin:$PATH \
FIREFOX_BIN=/usr/bin/firefox \
CHROME_BIN=/usr/bin/chromium \
JAVA_OPT="$JAVA_OPT -Dnexial.browser=chrome.headless"
#TODO: fix tests failing with firefox headless mode
# JAVA_OPT=$JAVA_OPT -Dnexial.browser=chrome.headless -Dnexial.browser=firefox.headless
CMD [ "/bin/bash" ]
# uncomment for troubleshooting
# ENTRYPOINT [ "tail", "-F", "/dev/null" ]