Advertising:
Instalacion SeleniumHQ para utilizar con Item Browser
Jump to navigation
Jump to search
Isntalacion y configuracion de PODMAN para Selenium Server
# dnf install -y podman # dnf install -y podman-docker # dnf install -y podman-compose # dnf install -y buildah skopeo # dnf install dnf-utils zip unzip tar gzip git # vi /etc/containers/registries.conf unqualified-search-registries = ["registry.access.redhat.com", "registry.redhat.io", "docker.io"]
# useradd container_user # echo "container_user ALL=(ALL) NOPASSWD: /usr/bin/podman" >> /etc/sudoers # echo "alias podman=\"sudo /usr/bin/podman\"" >> /home/container_user/.bash_profile # su - container_user # echo "alias docker=\"sudo /usr/bin/podman\"" >> /home/container_user/.bash_profile # docker ps -a # podman ps -a # systemctl enable --now podman # curl -SL https://github.com/docker/compose/releases/download/v2.29.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose # chmod +x /usr/local/bin/docker-compose # docker-compose version # dnf install -y python3.12 python3.12-pip # pip3.12 install podman-compose # ln -s /usr/local/bin/podman-compose /usr/bin/podman-compose # podman-compose version
Instalacion de Selenium Server
# wget https://raw.githubusercontent.com/SeleniumHQ/docker-selenium/trunk/docker-compose-v3-full-grid.yml -O docker-compose.yml # podman-compose up -d # podman ps # mkdir -p /docker/SeleniumHQ # cd /docker/SeleniumHQ # wget https://raw.githubusercontent.com/SeleniumHQ/docker-selenium/trunk/docker-compose-v3-full-grid.yml -O docker-compose.yml # podman-compose up -d ✔ docker.io/selenium/event-bus:4.23.1-20240813 ✔ docker.io/selenium/session-queue:4.23.1-20240813 ✔ docker.io/selenium/sessions:4.23.1-20240813 ✔ docker.io/selenium/node-chrome:4.23.1-20240813 ✔ docker.io/selenium/node-edge:4.23.1-20240813 ✔ docker.io/selenium/node-firefox:4.23.1-20240813 ✔ docker.io/selenium/distributor:4.23.1-20240813 ✔ docker.io/selenium/router:4.23.1-20240813
# podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES dd1ffdf2d215 docker.io/selenium/event-bus:4.23.1-20240813 /opt/bin/entry_po... About a minute ago Up About a minute 0.0.0.0:4442-4443->4442-4443/tcp, 0.0.0.0:5557->5557/tcp selenium-event-bus 9829839ce3af docker.io/selenium/session-queue:4.23.1-20240813 /opt/bin/entry_po... About a minute ago Up About a minute 0.0.0.0:5559->5559/tcp selenium-session-queue 60f538756408 docker.io/selenium/sessions:4.23.1-20240813 /opt/bin/entry_po... About a minute ago Up About a minute 0.0.0.0:5556->5556/tcp selenium-sessions dd9de2ba7807 docker.io/selenium/node-chrome:4.23.1-20240813 /opt/bin/entry_po... 53 seconds ago Up 54 seconds seleniumhq_chrome_1 665fe8097f25 docker.io/selenium/node-edge:4.23.1-20240813 /opt/bin/entry_po... 35 seconds ago Up 36 seconds seleniumhq_edge_1 582b2dea70f6 docker.io/selenium/node-firefox:4.23.1-20240813 /opt/bin/entry_po... 24 seconds ago Up 25 seconds seleniumhq_firefox_1 49c01d332d5b docker.io/selenium/distributor:4.23.1-20240813 /opt/bin/entry_po... 14 seconds ago Up 14 seconds 0.0.0.0:5553->5553/tcp selenium-distributor 749936cc8506 docker.io/selenium/router:4.23.1-20240813 /opt/bin/entry_po... 10 seconds ago Up 10 seconds 0.0.0.0:4444->4444/tcp selenium-router
# podman-compose logs -f
http://Selenium_IP:4444/ui/ Selenium Grid
Zabbix server settings
# vi /etc/zabbix/zabbix_server.conf WebDriverURL=http://localhost:4444 StartBrowserPollers=10 # systemctl restart zabbix-server
Referencias
https://github.com/containers/buildah https://github.com/containers/skopeo https://docs.podman.io/en/latest/