Skip to content

Commit

Permalink
use 8.2-node images
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Oct 24, 2023
1 parent c212339 commit 4da1d22
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
9 changes: 4 additions & 5 deletions presets/laravel+octane/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ create:
- name: 'Swoole'
actions:
- scripts:
- docker pull -q kooldev/php:8.2-nginx
- docker pull -q kooldev/php:8.2-nginx-swoole
- kool docker kooldev/php:8.2-nginx-swoole composer create-project --no-install --no-scripts --prefer-dist laravel/laravel $CREATE_DIRECTORY
- docker pull -q kooldev/php:8.2-swoole
- kool docker kooldev/php:8.2-swoole composer create-project --no-install --no-scripts --prefer-dist laravel/laravel $CREATE_DIRECTORY
- name: 'RoadRunner'
actions:
- scripts:
- docker pull -q kooldev/php:8.2-nginx
- kool docker kooldev/php:8.2-nginx composer create-project --no-install --no-scripts --prefer-dist laravel/laravel $CREATE_DIRECTORY
- docker pull -q kooldev/php:8.2-node
- kool docker kooldev/php:8.2-node composer create-project --no-install --no-scripts --prefer-dist laravel/laravel $CREATE_DIRECTORY

# Preset defines the workflow for installing this preset in the current working directory
preset:
Expand Down
4 changes: 2 additions & 2 deletions recipes/php-8.2-roadrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ actions:
- merge: app/php82-roadrunner.yml
dst: docker-compose.yml
- scripts:
- kool docker kooldev/php:8.2-nginx composer require laravel/octane spiral/roadrunner spiral/roadrunner-http spiral/roadrunner-cli
- kool docker kooldev/php:8.2-nginx php artisan octane:install --server=roadrunner --no-interaction
- kool docker kooldev/php:8.2-node composer require laravel/octane spiral/roadrunner spiral/roadrunner-http spiral/roadrunner-cli
- kool docker kooldev/php:8.2-node php artisan octane:install --server=roadrunner --no-interaction
4 changes: 2 additions & 2 deletions recipes/php-8.2-swoole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ actions:
- merge: app/php82-swoole.yml
dst: docker-compose.yml
- scripts:
- kool docker kooldev/php:8.2-nginx-swoole composer require laravel/octane
- kool docker kooldev/php:8.2-nginx-swoole php artisan octane:install --server=swoole
- kool docker kooldev/php:8.2-swoole composer require laravel/octane
- kool docker kooldev/php:8.2-swoole php artisan octane:install --server=swoole
2 changes: 1 addition & 1 deletion templates/app/php82-roadrunner.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
app:
image: kooldev/php:8.2-nginx
image: kooldev/php:8.2-node
command: php artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=80 --watch --poll
ports:
- "${KOOL_APP_PORT:-80}:80"
Expand Down
2 changes: 1 addition & 1 deletion templates/app/php82-swoole.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
app:
image: kooldev/php:8.2-nginx-swoole
image: kooldev/php:8.2-swoole
command: php artisan octane:start --server=swoole --host=0.0.0.0 --port=80 --watch --poll
ports:
- "${KOOL_APP_PORT:-80}:80"
Expand Down
4 changes: 2 additions & 2 deletions templates/scripts/laravel+octane+roadrunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ scripts:

before-start:
- kool docker kooldev/bash -c "cp .env.example .env"
- kool docker kooldev/php:8.1-nginx composer install
- kool docker kooldev/php:8.1-nginx php artisan key:generate
- kool docker kooldev/php:8.2-node composer install
- kool docker kooldev/php:8.2-node php artisan key:generate
4 changes: 2 additions & 2 deletions templates/scripts/laravel+octane+swoole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ scripts:

before-start:
- kool docker kooldev/bash -c "cp .env.example .env"
- kool docker kooldev/php:8.1-nginx-swoole composer install
- kool docker kooldev/php:8.1-nginx-swoole php artisan key:generate
- kool docker kooldev/php:8.2-swoole composer install
- kool docker kooldev/php:8.2-swoole php artisan key:generate

0 comments on commit 4da1d22

Please sign in to comment.