Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CRIO_BYTES
SELENIUM
me_selenium_screenshots
Commits
11b7a004
Commit
11b7a004
authored
3 years ago
by
Nabhan Abdulla P V
💬
Browse files
Options
Download
Email Patches
Plain Diff
Update Screenshots/selenium-setup.sh
Deleted Screenshots/selenium-run.sh
parent
f9cc1803
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
40 deletions
+3
-40
Screenshots/selenium-run.sh
Screenshots/selenium-run.sh
+0
-33
Screenshots/selenium-setup.sh
Screenshots/selenium-setup.sh
+3
-7
No files found.
Screenshots/selenium-run.sh
deleted
100755 → 0
View file @
f9cc1803
#!/bin/bash
# Stop the existing the zalenium docker container if its runnning
sudo
docker stop zalenium
# Start the zalenium docker container in 8082 port
sudo
/usr/bin/docker run
-d
--rm
-i
--name
zalenium
-p
8082:4444
\
-v
/var/run/docker.sock:/var/run/docker.sock
\
-v
/tmp/videos:/home/seluser/videos
\
--privileged
dosel/zalenium start
--videoRecordingEnabled
false
--desiredContainers
1
ip
=
"
$(
curl
-s
http://checkip.amazonaws.com/
)
"
url
=
"http://
$ip
:8082/vnc/host/172.17.0.3/port/50000/?nginx=&path=proxy/172.17.0.3:50000/websockify&view_only=false"
for
i
in
{
0..31
}
do
count
=
$(
sudo
docker ps |
grep
zalenium_ |
wc
-l
)
if
[[
"
$count
"
=
"1"
]]
;
then
break
fi
if
[[
"
$i
"
=
"30"
]]
;
then
echo
"
$(
tput setaf 1
)
Error starting zalenium container. Please contact Crio Support"
exit
1
fi
sleep
1
done
sleep
4
echo
""
echo
""
echo
$url
exit
0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Screenshots/selenium-setup.sh
View file @
11b7a004
# docker installation
sudo
apt-get update
sudo
apt-get
-y
install
docker.io
# pull selenium and zalenium docker images
sudo
docker pull elgalu/selenium
sudo
docker pull dosel/zalenium
\ No newline at end of file
# Download selenium-run.sh script
curl
-O
https://gitlab.crio.do/crio_bytes/selenium/me_selenium_web_actions/-/raw/master/SeleniumWebActions/selenium-run.sh
chmod
+x selenium-run.sh
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment