Browse Source

fix: Update RR config + update RR (#7857)

* fix: Fix RR config + RR update

* chore: rm rr archive (replaced with docker "copy --from=...")
Paramtamtam 2 years ago
parent
commit
20cdcecd27

+ 1 - 1
frameworks/PHP/laravel/deploy/roadrunner/.rr.yaml

@@ -9,7 +9,7 @@ http:
   address: 0.0.0.0:8080
   middleware: ["headers", "static", "gzip"]
   pool:
-    max_jobs: 64 # feel free to change this
+    #max_jobs: 64 # feel free to change this
     supervisor:
       exec_ttl: 60s
   headers:

BIN
frameworks/PHP/laravel/deploy/roadrunner/roadrunner-2.0.4-linux-amd64.tar.gz


+ 3 - 2
frameworks/PHP/laravel/laravel-roadrunner.dockerfile

@@ -23,8 +23,9 @@ COPY deploy/roadrunner/.rr.yaml ./
 RUN composer install -a --no-dev --quiet
 RUN php artisan optimize
 
-# `./vendor/bin/rr get-binary` is github rate-limited
-RUN tar xzf deploy/roadrunner/roadrunner-*.tar.gz && mv roadrunner-*/rr . && chmod +x ./rr
+# install roadrunner
+COPY --from=ghcr.io/roadrunner-server/roadrunner:2.12.1 /usr/bin/rr ./rr
+
 RUN php artisan vendor:publish --provider='Spiral\RoadRunnerLaravel\ServiceProvider' --tag=config
 
 EXPOSE 8080