Issue
The Woodpecker CI pipeline is failing to create the Docker Image for the project.
Explanation
The error output indicates that during the build process, the command composer dump-autoload -o failed to complete successfully. This error is causing subsequent commands to fail, leading to the unsuccessful creation of the Docker Image.
Expected Behavior
The Woodpecker CI pipeline should be able to successfully create the Docker Image for the project without encountering any errors.
Steps to Reproduce
Trigger the Woodpecker CI pipeline for the project.
Observe the output and note the error encountered during the build process.
Actual Results
The pipeline fails when trying to execute the composer dump-autoload -o command. The error output suggests that the required autoload.php file is missing, leading to a fatal error.
Additional Details
This issue has persisted in multiple pipeline runs.
The Dockerfile (starting at line 41) includes the problematic command, as shown in the error output.
The warning regarding the absence of git seems unrelated to the main issue but might be worth investigating.
Please investigate and resolve this issue as it prevents successful Docker Image creation and deployment. Let me know if you require additional information to debug this problem.
Version
1.0.0 (Default)
What browsers are you seeing the problem on?
No response
Relevant log output
#19 [13/14] RUN composer dump-autoload -o && chown -R :www-data /var/www/app && chmod -R 775 /var/www/app/storage /var/www/app/bootstrap/cache
#19 0.358 Generating optimized autoload files
#19 2.870 > Illuminate\Foundation\ComposerScripts::postAutoloadDump
#19 2.896 > @php artisan package:discover --ansi
#19 2.915
#19 2.915 Warning: require(/var/www/app/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/app/artisan on line 18
#19 2.915
#19 2.915 Fatal error: Uncaught Error: Failed opening required '/var/www/app/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/artisan:18
#19 2.915 Stack trace:
#19 2.915 #0 {main}
#19 2.915 thrown in /var/www/app/artisan on line 18
#19 2.919 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
#19 ERROR: process "/bin/sh -c composer dump-autoload -o && chown -R :www-data /var/www/app && chmod -R 775 /var/www/app/storage /var/www/app/bootstrap/cache" did not complete successfully: exit code: 255
------
> [13/14] RUN composer dump-autoload -o && chown -R :www-data /var/www/app && chmod -R 775 /var/www/app/storage /var/www/app/bootstrap/cache:
#19 2.870 > Illuminate\Foundation\ComposerScripts::postAutoloadDump
#19 2.896 > @php artisan package:discover --ansi
#19 2.915
#19 2.915 Warning: require(/var/www/app/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/app/artisan on line 18
#19 2.915
#19 2.915 Fatal error: Uncaught Error: Failed opening required '/var/www/app/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/artisan:18
#19 2.915 Stack trace:
#19 2.915 #0 {main}
#19 2.915 thrown in /var/www/app/artisan on line 18
#19 2.919 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
------
WARNING: buildx: git was not found in the system. Current commit information was not captured by the build
Dockerfile:41
--------------------
40 | COPY ./src .
41 | >>> RUN composer dump-autoload -o \
42 | >>> && chown -R :www-data /var/www/app \
43 | >>> && chmod -R 775 /var/www/app/storage /var/www/app/bootstrap/cache
44 |
--------------------
ERROR: failed to solve: process "/bin/sh -c composer dump-autoload -o && chown -R :www-data /var/www/app && chmod -R 775 /var/www/app/storage /var/www/app/bootstrap/cache" did not complete successfully: exit code: 255
time="2023-07-13T21:29:02Z" level=error msg="execution failed: exit status 1"
Code of Conduct
[x] I agree to follow this project's Code of Conduct
Contact Details
contact@vahngomes.dev
What happened?
Issue The Woodpecker CI pipeline is failing to create the Docker Image for the project.
Explanation The error output indicates that during the build process, the command
composer dump-autoload -o
failed to complete successfully. This error is causing subsequent commands to fail, leading to the unsuccessful creation of the Docker Image.Expected Behavior The Woodpecker CI pipeline should be able to successfully create the Docker Image for the project without encountering any errors.
Steps to Reproduce
Actual Results The pipeline fails when trying to execute the
composer dump-autoload -o
command. The error output suggests that the requiredautoload.php
file is missing, leading to a fatal error.Additional Details
Please investigate and resolve this issue as it prevents successful Docker Image creation and deployment. Let me know if you require additional information to debug this problem.
Version
1.0.0 (Default)
What browsers are you seeing the problem on?
No response
Relevant log output
Code of Conduct