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

Composer not installed when using docker #15

Open
MDeiml opened this issue Oct 25, 2019 · 3 comments
Open

Composer not installed when using docker #15

MDeiml opened this issue Oct 25, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@MDeiml
Copy link
Member

MDeiml commented Oct 25, 2019

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php'); if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { include 'composer-setup.php'; } else { echo 'Installer corrupt'; }; unlink('composer-setup.php');";

This always downloads the latest version of composer, but checks against the hash of older version. Maybe this should specify the version to be downloaded?

@MDeiml MDeiml added the bug Something isn't working label Oct 25, 2019
@MDeiml
Copy link
Member Author

MDeiml commented Oct 25, 2019

Actually you can't specify the version of composer-setup.php which should be downloaded, you can only specify the version of composer itself. Maybe this should download composer.phar by hand?

@MDeiml
Copy link
Member Author

MDeiml commented Oct 25, 2019

I don't really know anything about Docker, maybe we could use this https://hub.docker.com/_/composer

@AntonLydike
Copy link
Member

Damn the checksum thing is quite maddening... I'll try to look for a way to fix the composer version (as the dockerfile is meant for dev env anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants