File tree 7 files changed +16
-108
lines changed 7 files changed +16
-108
lines changed Original file line number Diff line number Diff line change @@ -148,4 +148,11 @@ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
148
148
# Creating base directory for Xvfb
149
149
RUN sudo mkdir -p /tmp/.X11-unix && sudo chmod 1777 /tmp/.X11-unix
150
150
151
+ # Copying configuration script generator
152
+ COPY generate_config /opt/bin/generate_config
153
+
154
+ # Generating a default config during build time
155
+ RUN /opt/bin/generate_config
156
+
157
+
151
158
EXPOSE 5900
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # OPERA_VERSION=$(opera -version)
4
-
5
- echo " [node]
6
- max-concurrent-sessions = ${SE_NODE_MAX_CONCURRENT_SESSIONS}
7
- [events]
3
+ echo " [events]
8
4
publish = \" tcp://${SE_EVENT_BUS_HOST} :${SE_EVENT_BUS_PUBLISH_PORT} \"
9
5
subscribe = \" tcp://${SE_EVENT_BUS_HOST} :${SE_EVENT_BUS_SUBSCRIBE_PORT} \"
10
6
" > /opt/selenium/config.toml
11
7
12
-
13
8
if [[ -z " ${SE_NODE_HOST} " ]] || [[ -z " ${SE_NODE_PORT} " ]]; then
14
- echo " SE_NODE_HOST and SE_NODE_PORT not found."
15
- else
16
- echo " [server]" >> /opt/selenium/config.toml
17
- fi
18
-
19
- if [[ -z " ${SE_NODE_HOST} " ]] || [[ -z " ${SE_NODE_PORT} " ]]; then
20
- echo " SE_NODE_HOST and SE_NODE_PORT not found."
9
+ echo " Configuring server..."
21
10
else
22
11
echo " [server]" >> /opt/selenium/config.toml
23
12
fi
24
13
25
14
if [[ -z " ${SE_NODE_HOST} " ]]; then
26
- echo " Using default SE_NODE_HOST."
15
+ echo " Setting up SE_NODE_HOST.. ."
27
16
else
28
17
echo " hostname = \" ${SE_NODE_HOST} \" " >> /opt/selenium/config.toml
29
18
fi
30
19
31
20
if [[ -z " ${SE_NODE_PORT} " ]]; then
32
- echo " Using default SE_NODE_PORT."
21
+ echo " Setting up SE_NODE_PORT.. ."
33
22
else
34
23
echo " port = \" ${SE_NODE_PORT} \" " >> /opt/selenium/config.toml
35
24
fi
25
+
26
+ echo " [node]
27
+ max-concurrent-sessions = ${SE_NODE_MAX_CONCURRENT_SESSIONS}
28
+ " >> /opt/selenium/config.toml
29
+
Original file line number Diff line number Diff line change @@ -46,8 +46,3 @@ RUN if [ -z "$CHROME_DRIVER_VERSION" ]; \
46
46
&& mv /opt/selenium/chromedriver /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
47
47
&& chmod 755 /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
48
48
&& sudo ln -fs /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION /usr/bin/chromedriver
49
-
50
- COPY generate_config /opt/bin/generate_config
51
-
52
- # Generating a default config during build time
53
- RUN /opt/bin/generate_config
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -31,15 +31,3 @@ RUN GK_VERSION=$(if [ ${GECKODRIVER_VERSION:-latest} = "latest" ]; then echo "0.
31
31
&& ln -fs /opt/geckodriver-$GK_VERSION /usr/bin/geckodriver
32
32
33
33
USER 1200
34
-
35
- COPY generate_config /opt/bin/generate_config
36
-
37
- # Generating a default config during build time
38
- RUN /opt/bin/generate_config
39
-
40
- #==========
41
- # Relaxing permissions for OpenShift and other non-sudo environments
42
- #==========
43
- RUN sudo chmod -R 777 ${HOME} \
44
- && sudo chgrp -R 0 ${HOME} \
45
- && sudo chmod -R g=u ${HOME}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -51,8 +51,3 @@ RUN LATEST_VERSION=$(curl -s https://api.github.com/repos/operasoftware/operachr
51
51
&& rm -rf /tmp/operadriver_linux64* \
52
52
&& chmod 755 /opt/selenium/operadriver-${OPERA_DRIVER_VERSION} \
53
53
&& sudo ln -fs /opt/selenium/operadriver-${OPERA_DRIVER_VERSION} /usr/bin/operadriver
54
-
55
- COPY generate_config /opt/bin/generate_config
56
-
57
- # Generating a default config during build time
58
- RUN /opt/bin/generate_config
You can’t perform that action at this time.
0 commit comments