shivammathur / node-docker

Docker images with Node.js and PHP for CI

Home Page:https://hub.docker.com/r/shivammathur/node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to reach GitHub

jeronimo13 opened this issue · comments

spc --php-version "7.4" \
              --extensions "mbstring, openssl, ffi" \
              --ini-values "post_max_size=256M, max_execution_time=180" \
              --tools "composer, phpunit"

fails with:

Unable to reach GitHub 
Please check your internet connection 

I dig a bit and found that curl command output: error setting certificate verify locations

I patched the container after docker pull with

apt-get update
apt-get install ca-certificates

and it solves the problem, so that I can spc successfully, but I believe it's not ideal and I barely understand what's going on.

Fixed in 937a0f3
You can pull the image again and run spc, it should work now.

Also I would recommend using non slim images for spc as those have the required packages for it. On slim images it installs them when you run spc for the first time.