Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

Add wget #66

Merged
merged 2 commits into from
May 4, 2016
Merged

Add wget #66

merged 2 commits into from
May 4, 2016

Conversation

RobLoach
Copy link
Owner

@RobLoach RobLoach commented May 4, 2016

Fixes https://github.com/kalabox/kalabox/issues/1284

Surprised it wasn't there from the start.

@pirog
Copy link
Collaborator

pirog commented May 4, 2016

@RobLoach yeah also surprised. The Docker Gods are fickle.

Tests are broken on installing composer but restarted to see if it temporary internet woes.

@pirog
Copy link
Collaborator

pirog commented May 4, 2016

Yeah @RobLoach, builds are failing on composer install

Step 11 : RUN php -r "readfile('https://getcomposer.org/installer');" > /tmp/composer-setup.php   && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== '${COMPOSER_INSTALLER_SHA384}') { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"
 ---> Running in df14c354aa7c
Invalid installer
The command '/bin/sh -c php -r "readfile('https://getcomposer.org/installer');" > /tmp/composer-setup.php   && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== '${COMPOSER_INSTALLER_SHA384}') { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"' returned a non-zero code: 1
make: *** [build] Error 1

@pirog
Copy link
Collaborator

pirog commented May 4, 2016

@RobLoach k, just had to update the install script SHASHA and i think we will be back in bizniss

See: https://www.getyarn.io/yarn-clip/a93d2852-0d86-4fb9-a86d-cfef174f06dd

@pirog pirog merged commit 585d905 into master May 4, 2016
@pirog pirog deleted the wget branch May 4, 2016 17:39
@ozbillwang
Copy link

ozbillwang commented May 7, 2016

@pirog & @RobLoach

How did you get COMPOSER_INSTALLER_SHA384, I have same issue when build the image, but I have updated the SHA key.

$ cat sha.php
<?php
echo hash('sha384','file_get_contents(\'https://getcomposer.org/installer\')');
?>

$ php sha.php
88b1cf7ffb541783b4dde205b9454904aa7fd1ca2d49202fe8164e327296e900f643c1fb8e2f2d1dff67cd0bd1913f5f

Step 9 : ENV COMPOSER_INSTALLER_SHA384 "88b1cf7ffb541783b4dde205b9454904aa7fd1ca2d49202fe8164e327296e900f643c1fb8e2f2d1dff67cd0bd1913f5f"
 ---> Using cache
 ---> 1db417cc0536
Step 10 : RUN php -r "readfile('https://getcomposer.org/installer');" > /tmp/composer-setup.php   && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== '${COMPOSER_INSTALLER_SHA384}') { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"
 ---> Running in c839a4a86fe2
Invalid installer
The command '/bin/sh -c php -r "readfile('https://getcomposer.org/installer');" > /tmp/composer-setup.php   && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== '${COMPOSER_INSTALLER_SHA384}') { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"' returned a non-zero code: 1

@RobLoach
Copy link
Owner Author

RobLoach commented May 8, 2016

The hash is from https://getcomposer.org/download/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants