Skip to content

Commit

Permalink
Fix docker integration test (#18)
Browse files Browse the repository at this point in the history
`bin/cake plugin load CakePreloader` was not working for some reason, directly copy `config/plugins.php` during docker build instead.
  • Loading branch information
cnizzardini authored Oct 14, 2023
1 parent 39effd6 commit b7658a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY --from=composer /usr/bin/composer /usr/bin/composer

RUN composer create-project --prefer-dist --no-interaction cakephp/app:5.0 .
RUN composer require cnizzardini/cakephp-preloader:$BRANCH
RUN bin/cake plugin load CakePreloader
COPY plugins.php /srv/app/config/plugins.php
RUN bin/cake preloader

CMD ["php-fpm"]
6 changes: 6 additions & 0 deletions tests/plugins.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

return [
'CakePreloader' => [],
];

0 comments on commit b7658a7

Please sign in to comment.