-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add octane tests to laravel 12 (#554)
* Update and add scaffolding for octane tests in different laravel fixtures * Update test scenarios to use new step * Add Octane - Laravel 12 tests to e2e CI * Update comments on environment variables in docker-compose file
- Loading branch information
Showing
16 changed files
with
126 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG PHP_VERSION | ||
FROM php:$PHP_VERSION | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
unzip \ | ||
wget \ | ||
zip | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
COPY --from=composer /usr/bin/composer /usr/local/bin/composer | ||
|
||
RUN curl https://frankenphp.dev/install.sh | sh | ||
RUN mv frankenphp /usr/local/bin/ | ||
|
||
RUN cp .env.example .env | ||
RUN docker-php-ext-install sockets pcntl posix | ||
RUN composer install --no-dev | ||
RUN composer require laravel/octane | ||
RUN php artisan key:generate | ||
RUN php artisan octane:install --server=frankenphp | ||
|
||
# create database & apply migrations | ||
RUN touch database/database.sqlite && php artisan migrate --no-interaction | ||
|
||
CMD php -d variables_order=EGPCS artisan octane:start --server=frankenphp --host=0.0.0.0 --admin-port=2019 --port=8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG PHP_VERSION | ||
FROM php:$PHP_VERSION | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
unzip \ | ||
wget \ | ||
zip | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
COPY --from=composer /usr/bin/composer /usr/local/bin/composer | ||
|
||
RUN cp .env.example .env | ||
RUN docker-php-ext-install sockets pcntl posix | ||
RUN composer install --no-dev | ||
RUN composer require laravel/octane spiral/roadrunner-cli | ||
RUN ./vendor/bin/rr get-binary | ||
RUN php artisan key:generate | ||
RUN php artisan octane:install --server=roadrunner | ||
|
||
# create database & apply migrations | ||
RUN touch database/database.sqlite && php artisan migrate --no-interaction | ||
|
||
CMD php -d variables_order=EGPCS artisan octane:start --server=roadrunner --host=0.0.0.0 --rpc-port=6001 --port=8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ARG PHP_VERSION | ||
FROM php:$PHP_VERSION | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
unzip \ | ||
wget \ | ||
zip \ | ||
libbrotli-dev | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
COPY --from=composer /usr/bin/composer /usr/local/bin/composer | ||
|
||
RUN cp .env.example .env | ||
RUN docker-php-ext-install sockets pcntl posix | ||
RUN composer install --no-dev | ||
RUN composer require laravel/octane | ||
RUN pecl install swoole | ||
RUN docker-php-ext-enable swoole | ||
RUN php artisan key:generate | ||
RUN php artisan octane:install --server=swoole | ||
|
||
# create database & apply migrations | ||
RUN touch database/database.sqlite && php artisan migrate --no-interaction | ||
|
||
CMD php -d variables_order=EGPCS artisan octane:start --server=swoole --host=0.0.0.0 --rpc-port=6001 --port=8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.