Setting up Docker-based runners on Linux
This application of this self-hosted runner allows for the ultimate in dynamic configuration. By allowing runners inside Docker containers, we can add or subtract runners as needed.
We’ll start with a Linux environment, install Docker, and load and run the Docker image for the Bitbucket runner software. Let’s take a look at the complete picture of setting up Docker-based runners.
Getting ready
Our Linux environment has some prerequisites we must cover before we can proceed. First, we need to understand our Linux environment. This environment should have the following features:
- You should be using the 64-bit version of Linux.
- A minimum of 8 GB of RAM should be allocated to the host for the runner. If you know that you are going to need a lot of room (for example, due to more build steps), you should allocate more memory.
- At least 512 MB must be allocated for the runner container.
- Docker v19.03 or above...