Skip to content

Commit

Permalink
Added docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Çalışkan committed Dec 28, 2023
1 parent a5e6925 commit e056253
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
### OpenSwoole

```bash
docker run -p 9801:9801/tcp ghcr.io/thecaliskan/laravel-benchmark:openswoole
docker run --pull=always -p 9801:9801/tcp ghcr.io/thecaliskan/laravel-benchmark:openswoole

wrk -t8 -c16 -d30s --latency http://127.0.0.1:9801/api/health-check
```

### Swoole

```bash
docker run -p 9802:9802/tcp ghcr.io/thecaliskan/laravel-benchmark:swoole
docker run --pull=always -p 9802:9802/tcp ghcr.io/thecaliskan/laravel-benchmark:swoole

wrk -t8 -c16 -d30s --latency http://127.0.0.1:9802/api/health-check
```

### RoadRunner

```bash
docker run -p 9803:9803/tcp ghcr.io/thecaliskan/laravel-benchmark:roadrunner
docker run --pull=always -p 9803:9803/tcp ghcr.io/thecaliskan/laravel-benchmark:roadrunner

wrk -t8 -c16 -d30s --latency http://127.0.0.1:9803/api/health-check
```

### FrankenPHP

```bash
docker run -p 9804:9804/tcp ghcr.io/thecaliskan/laravel-benchmark:frankenphp
docker run --pull=always -p 9804:9804/tcp ghcr.io/thecaliskan/laravel-benchmark:frankenphp

wrk -t8 -c16 -d30s --latency http://127.0.0.1:9804/api/health-check
```
2 changes: 1 addition & 1 deletion frankenphp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /var/www

RUN apk add jq

RUN wget -Ofrankenphp $(wget -O- https://api.github.com/repos/dunglas/frankenphp/releases/latest | jq '.assets[] | select(.name=="frankenphp-linux-x86_64") | .browser_download_url' -r)
RUN wget -O/usr/local/bin/frankenphp $(wget -O- https://api.github.com/repos/dunglas/frankenphp/releases/latest | jq '.assets[] | select(.name=="frankenphp-linux-x86_64") | .browser_download_url' -r)

RUN composer install --no-dev

Expand Down
2 changes: 0 additions & 2 deletions openswoole.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ WORKDIR /var/www

RUN composer install --no-dev

RUN composer env-generate

RUN php -r "file_exists('.env') || copy('.env.example', '.env');" && php artisan key:generate --ansi

ENTRYPOINT ["php", "artisan", "octane:start", "--server=swoole", "--port=9801", "--workers=16", "--host=0.0.0.0"]

0 comments on commit e056253

Please sign in to comment.