Bug: Cannot install on plain Ubuntu 14.04
getaddrinfo fails in
composer.sh on a plain Ubuntu 14.04 LTS
➜ typo3.org git:(master) ✗ make reset "$(pwd)/data/scripts/docker-compose.sh" kill "$(pwd)/data/scripts/docker-compose.sh" down --remove-orphans Removing network typo3org_default WARNING: Network typo3org_default not found. Network proxy is external, skipping "$(pwd)/data/scripts/composer.sh" --working-dir=data/typo3 install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file - Installing helhum/typo3-console-plugin (1.6.0) Downloading: Failed Downloading: Failed Downloading: Failed Failed to download helhum/typo3-console-plugin from dist: The "https://api.github.com/repos/TYPO3-Console/typo3-console-plugin/zipball/6b964fb572692c2ada04979aeb2a2faf16ca60c0" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Try again failed to open stream: php_network_getaddresses: getaddrinfo failed: Try again Now trying to download from source
Solution (by Bastian Bringenberg)
Add commandline parameter
docker run command
Is this the correct solution for the problem? Patch will follow.
Content of the patch
exec docker run --rm -u $(id -u) $DOCKER_RUN_OPTIONS $COMPOSER_OPTIONS $VOLUMES -w "$(pwd)" $IMAGE "$@" exec docker run --rm -u $(id -u) --net=host $DOCKER_RUN_OPTIONS $COMPOSER_OPTIONS $VOLUMES -w "$(pwd)" $IMAGE "$@"
As the problem was gone in the usual environment at home the merge request was cancelled and the branch removed.