GithubHelp home page GithubHelp logo

Comments (4)

ragingdave avatar ragingdave commented on August 22, 2024 1

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.

lorisleiva avatar lorisleiva commented on August 22, 2024

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.

ragingdave avatar ragingdave commented on August 22, 2024

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.

lorisleiva avatar lorisleiva commented on August 22, 2024

Iā€™m going to close this for now. Feel free to open a new issue if needed. šŸ™‚

from laravel-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.