Skip to content

Commit 303e571

Browse files
committed
Adopting new path and using seluser from the beginning
1 parent 0304487 commit 303e571

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

Standalone/Dockerfile.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
USER root
1+
USER seluser
22

33
#====================================
44
# Scripts to run Selenium Standalone
55
#====================================
66
COPY entry_point.sh /opt/bin/entry_point.sh
7-
RUN chmod +x /opt/bin/entry_point.sh
8-
9-
USER seluser
107

118
EXPOSE 4444

Standalone/entry_point.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SERVERNUM=$(get_server_num)
1818
rm -f /tmp/.X*lock
1919

2020
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
21-
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
21+
java ${JAVA_OPTS} -jar /home/seluser/selenium/selenium-server-standalone.jar \
2222
${SE_OPTS} &
2323
NODE_PID=$!
2424

StandaloneChrome/entry_point.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SERVERNUM=$(get_server_num)
1818
rm -f /tmp/.X*lock
1919

2020
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
21-
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
21+
java ${JAVA_OPTS} -jar /home/seluser/selenium/selenium-server-standalone.jar \
2222
${SE_OPTS} &
2323
NODE_PID=$!
2424

StandaloneFirefox/entry_point.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SERVERNUM=$(get_server_num)
1818
rm -f /tmp/.X*lock
1919

2020
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
21-
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
21+
java ${JAVA_OPTS} -jar /home/seluser/selenium/selenium-server-standalone.jar \
2222
${SE_OPTS} &
2323
NODE_PID=$!
2424

0 commit comments

Comments
 (0)