Comments (4)
So it seems that it doesn't actually work in the PR....did some more checking and it seems neither ends up working in bitbucket for using it's built in caches....looks like I need to do more investigation to get it working...
from laravel-docker.
Hi there š
Thanks for raising this issue.
This was already like that originally but users had issues with binaries not being found automatically from the $PATH
variable. See issue #20.
Defining an explicit directory for COMPOSER_HOME
enabled us to fix this issue. Since then I've had a look at other PHP Dockerfiles that include composer and most of them seem to be using this approach.
I'd love to improve this by making it more cache-friendly for CI/CD tools but not if it's going to re-open issue #20.
Let me know your thoughts on this. š
from laravel-docker.
While I of course can't test all the ci/cd implementations due to this being docker-ized I would think that all pipelines would work the same...because well otherwise...what's the point of docker. With that said I can say that the modifications in the PR applied in a new image, it does work as expected. I would say that I don't use the pre-installed version of php codesniffer, as I run codesniffer in a pre-commit hook as well so the pipeline check is just for good measure. I'm assuming the pre-installed version of phpcs is what caused that issue in the first place, which for me seems like bad practice and enforces a mentality of "ci will catch it"...IMHO of course.
Link to working (cachable) composer install in docker based off the PR code: https://hub.docker.com/repository/docker/ragingdave/laravel-docker/general
Additionally perhaps a middle ground would be to just update the PATH in the docker container to add the global composer bin install, which would not require the changing of the COMPOSER HOME, but should still make phpcs be part of the PATH
from laravel-docker.
Iām going to close this for now. Feel free to open a new issue if needed. š
from laravel-docker.
Related Issues (20)
- phpcs: command not found HOT 8
- bash: make: command not found HOT 2
- Error running composer install HOT 2
- phpcs: command not found HOT 1
- [Vote] Chromium for dusk tests HOT 1
- Missing extensions? HOT 1
- wkhtmltopdf issue for 7.4 HOT 6
- Latest version HOT 1
- Set php.ini parameters HOT 2
- Would it be possible to update to the latest PHPCS?
- Update to latest PHP8.1 HOT 3
- Error less: unrecognized option: X - PHP 7.4 HOT 2
- Disabling Xdebug HOT 1
- Rebuilding the images with latest PHP versions HOT 1
- build fails with node version issue HOT 1
- Imap Extension HOT 2
- Support for ARM64
- Missing git after commit "Install php extension with `docker-php-extension-installer` + get rid of already installed extension" HOT 7
- bash: git: command not found HOT 2
- phpunit: command not found HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-docker.