The easiest way to get the latest RoadRunner version is to use one of the pre-built release binaries which are available for OSX, Linux, FreeBSD, and Windows. Instructions for using these binaries are on the GitHub releases page.
To get the roadrunner binary file you can use our docker image: ghcr.io/roadrunner-server/roadrunner:2.X.X
(more information about
image and tags can be found here).
FROM ghcr.io/roadrunner-server/roadrunner:2.X.X AS roadrunner
FROM php:8.1-cli
COPY --from=roadrunner /usr/bin/rr /usr/local/bin/rr
# USE THE RR
Configuration located in the .rr.yaml
file (full sample):
You can also install RoadRunner automatically using command shipped with the composer package, run:
composer require spiral/roadrunner:v2.0 nyholm/psr7
./vendor/bin/rr get-binary
Server binary will be available at the root of your project.
PHP's extensions
php-curl
andphp-zip
are required to download RoadRunner automatically. PHP's extensionsphp-sockets
need to be installed to run roadrunner. Check withphp --modules
your installed extensions.
wget https://github.com/roadrunner-server/roadrunner/releases/download/v2.X.X/roadrunner-2.X.X-linux-amd64.deb
sudo dpkg -i roadrunner-2.X.X-linux-amd64.deb
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/roadrunner-server/roadrunner/master/download-latest.sh | sh