Closed Rajpratik71 closed 4 years ago
I like the idea behind this PR, but I can also see that it will require other changes in the code to work.
This will fail when
curl
is installed without the recommended packages:Step 4/7 : RUN curl https://packagecloud.io/install/repositories/fdio/release/script.deb.sh | bash ---> Running in 5e5f7438a1a8 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs
The fix here seems quite simple, as installing
ca-certificates
fixes the curl issue. I am however worried that there are additional caveats for some of the modifications, which will require a bit more testing before being merged.I will continue looking into this as soon as I sort out another set of changes I have staged
To fix the error added "ca-certificates" and also added "apt-utils" because without this apt-get take more time while configuring packages , every time new package is installed . It is also suggested in log.
done some cleanup in automated way like removed "-y" flag , rearranged etc . If other left remains , their duplicity doesn't affect anything in any way.
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages .
By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.
This results in smaller downloads and installation of packages .
Refer to blog at Ubuntu Blog .
Signed-off-by: Pratik Raj rajpratik71@gmail.com