Closed codexyash closed 4 years ago
It's a big Dockerfile so a bit impractical for me to try out, but there is 1 thing I notice, you copy the composer.json/.lock and run composer install
and only then copy the application sources, possibly this could be an issue you could try to make sure all the application sources are in the container before running composer install.
I also can't see the config/sentry.php
(if you have one) but if you have this code uncommented (it's commented by default) it tries to use Git to find a release version which might cause a error since the git repo (or maybe even the git binary) is not available inside your container:
// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),
It would really help to see the error output leading up to the non-zero code to see where it's getting stuck because I don't see much Sentry specific code running and I have no clue why a simple composer install would break otherwise.
I am closing this issue because of inactivity, if there is still an issue please re-open / open a new issue so we can investigate 👍
Hello,
I installed the latest version of
sentry-laravel
, when I run it on my local.. it works absolutely fine, but when I create the docker image for it.. the build fails withreturned a non-zero code: 255
.When I add it to
dont-discover
, the build succeeds.Here I am adding my
composer.json
anddockerfile
, Please have a look and let me know If I am doing anything wrong.Docker
Composer