1EdTech / lti-1-3-php-example-tool

52 stars 43 forks source link

docker-compose issue, composer fails due to github API being rate limited #2

Open ionparticle opened 4 years ago

ionparticle commented 4 years ago

By default, composer pulls from github using the github API, which is rate limited.

Composer is called every time docker-compose brings the container up, so we reach the limit rather quickly with enough restarts. The container will fail to start because the github API starts requiring authentication.

To fix, need to tell composer not to use the API in composer.json:

        {
            "type": "vcs",
            "url": "https://github.com/IMSGlobal/lti-1-3-php-library",
            "no-api": true
        }
ionparticle commented 4 years ago

Alternatively, adding the --prefer-dist and --no-interaction flags to composer might be sufficient (I didn't test it, but saw some posts mentioning them).

doldsimo commented 2 years ago

@ionparticle Thank you, wokred for me