Come hang with us on Discord and chat directly with the team!Discordtop-bar-close-icon

2024-09-22

How to Install Selenoid on Alpine Linux Latest

tutorials
img

Selenoid is a fast and reliable alternative to the Selenium server for running automated browser tests. This guide outlines the steps to install Selenoid on the latest version of Alpine Linux.

Prerequisites

Before starting the installation, ensure that you have:

  • A running instance of Alpine Linux Latest
  • Docker CE installed on your system
  • Root access or sudo privileges

Step 1: Install Docker CE

Docker CE is essential for running Selenoid. To install Docker CE on Alpine Linux Latest, execute the following commands:

$ apk update
$ apk add docker
$ rc-update add docker boot
$ service docker start

This process installs Docker CE on your Alpine Linux system.

Step 2: Download Selenoid Images

Obtain the official Selenoid images from Docker Hub by running these commands:

$ docker pull selenoid/chrome:latest
$ docker pull selenoid/firefox:latest

This downloads the latest versions of the Chrome and Firefox images needed for Selenoid.

Step 3: Download Selenoid Configuration

To download the Selenoid configuration file in JSON format, use the following command:

$ curl -Lo selenoid.json https://aerokube.com/selenoid/latest/

Step 4: Run Selenoid

Start Selenoid with this command, which will expose it on port 4444:

$ docker run -d --name selenoid \
    -p 4444:4444 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v `pwd`:/etc/selenoid:ro \
    selenoid/standalone:latest -config /etc/selenoid/selenoid.json

You can verify Selenoid's status by visiting http://localhost:4444/status.

Conclusion

Congratulations! You have successfully installed and configured Selenoid on Alpine Linux Latest. You can now leverage Selenoid for your automated testing requirements.