Commit 11b7a004 authored by Nabhan Abdulla P V's avatar Nabhan Abdulla P V 💬
Browse files

Update Screenshots/selenium-setup.sh

Deleted Screenshots/selenium-run.sh
parent 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
# 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment