Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build not working at the php patch step #227

Closed
jujuforce opened this issue Jul 13, 2024 · 1 comment
Closed

Docker build not working at the php patch step #227

jujuforce opened this issue Jul 13, 2024 · 1 comment

Comments

@jujuforce
Copy link

 > [web stage-0 6/6] RUN useradd -ms /bin/bash gazelle     && cp /var/www/.docker/web/php.ini /etc/php/8.2/cli/php.ini     && cp /var/www/.docker/web/php.ini /etc/php/8.2/fpm/php.ini     && cp /var/www/.docker/web/xdebug.ini /etc/php/8.2/mods-available/xdebug.ini     && cp /var/www/.docker/web/www.conf /etc/php/8.2/fpm/pool.d/www.conf     && cp /var/www/.docker/web/nginx.conf /etc/nginx/sites-available/gazelle.conf     && ln -s /etc/nginx/sites-available/gazelle.conf /etc/nginx/sites-enabled/gazelle.conf     && rm -f /etc/nginx/sites-enabled/default     && echo "Initialize Boris..."     && grep '^disable_functions' /etc/php/8.2/cli/php.ini         | sed -r 's/pcntl_(fork|signal|signal_dispatch|waitpid),//g'         > /etc/php/8.2/cli/conf.d/99-boris.ini     && .docker/web/generate-config.sh     && bin/local-patch     && echo "Generate file storage directories..."     && perl /var/www/bin/generate-storage-dirs /var/lib/gazelle/torrent 2 100     && perl /var/www/bin/generate-storage-dirs /var/lib/gazelle/riplog 2 100     && perl /var/www/bin/generate-storage-dirs /var/lib/gazelle/riploghtml 2 100     && chown -R gazelle:gazelle /var/lib/gazelle /var/www     && npm install -g [email protected]     && su gazelle -c 'composer --version        && composer install --no-progress --optimize-autoloader        && yarn        && npx update-browserslist-db@latest        && yarn dev':
0.394 Initialize Boris...
0.403 Generating configuration parameters...
0.449 can't find file to patch at input line 5
0.449 Perhaps you used the wrong -p or --strip option?
0.449 The text leading up to this was:
0.449 --------------------------
0.449 |diff --git a/vendor/mdanter/ecc/src/Math/NumberTheory.php b/vendor/mdanter/ecc/src/Math/NumberTheory.php
0.449 |index 9b43b47..1a10f3e 100644
0.449 |--- a/vendor/mdanter/ecc/src/Math/NumberTheory.php
0.449 |+++ b/vendor/mdanter/ecc/src/Math/NumberTheory.php
0.449 --------------------------
0.449 File to patch:
0.449 Skip this patch? [y]
0.449 Skipping patch.
0.450 1 out of 1 hunk ignored
------
failed to solve: process "/bin/sh -c useradd -ms /bin/bash gazelle     && cp /var/www/.docker/web/php.ini /etc/php/${PHP_VER}/cli/php.ini     && cp /var/www/.docker/web/php.ini /etc/php/${PHP_VER}/fpm/php.ini     && cp /var/www/.docker/web/xdebug.ini /etc/php/${PHP_VER}/mods-available/xdebug.ini     && cp /var/www/.docker/web/www.conf /etc/php/${PHP_VER}/fpm/pool.d/www.conf     && cp /var/www/.docker/web/nginx.conf /etc/nginx/sites-available/gazelle.conf     && ln -s /etc/nginx/sites-available/gazelle.conf /etc/nginx/sites-enabled/gazelle.conf     && rm -f /etc/nginx/sites-enabled/default     && echo \"Initialize Boris...\"     && grep '^disable_functions' /etc/php/${PHP_VER}/cli/php.ini         | sed -r 's/pcntl_(fork|signal|signal_dispatch|waitpid),//g'         > /etc/php/${PHP_VER}/cli/conf.d/99-boris.ini     && .docker/web/generate-config.sh     && bin/local-patch     && echo \"Generate file storage directories...\"     && perl /var/www/bin/generate-storage-dirs /var/lib/gazelle/torrent 2 100     && perl /var/www/bin/generate-storage-dirs /var/lib/gazelle/riplog 2 100     && perl /var/www/bin/generate-storage-dirs /var/lib/gazelle/riploghtml 2 100     && chown -R gazelle:gazelle /var/lib/gazelle /var/www     && npm install -g [email protected]     && su gazelle -c 'composer --version        && composer install --no-progress --optimize-autoloader        && yarn        && npx update-browserslist-db@latest        && yarn dev'" did not complete successfully: exit code: 1

Looks like it is not finding the file to patch, any idea how to solve this?

Thanks.

@itismadness
Copy link

itismadness commented Dec 30, 2024

We've removed the need to patch that library with 38a987d along with that file, which should have resolved whatever might have caused this issue. My guess is that you had installed a newer version of mdanter/ecc than was specified in our lock file, and that they had made some change that invalidated our patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants