gauntlt / gauntlt-docker

the docker for gauntlt
86 stars 68 forks source link

Make build fails -> nokorigi issue #27

Open nabello opened 8 months ago

nabello commented 8 months ago

Hi everyone, I am using a Mac with the latest version of Docker for Mac installed to follow the LinkedIn Learning course DevSecOps: Automated Testing which references the use of this repository. I follow the instructions in the course:

  1. Checkout this repository
  2. Change directories into the repository folder
  3. Execute the make build command which results in the following output for me:
gauntlt-docker % make build    
Building docker container...
[+] Building 119.8s (9/19)                                                                                                                                        
 => [internal] load build definition from Dockerfile                                                                                                         0.0s
 => => transferring dockerfile: 2.08kB                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                              0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                                              1.2s
 => [ 1/15] FROM docker.io/library/ubuntu:20.04@sha256:80ef4a44043dec4490506e6cc4289eeda2d106a70148b74b5ae91ee670e9c35d                                      0.0s
 => [internal] load build context                                                                                                                            0.0s
 => => transferring context: 70B                                                                                                                             0.0s
 => CACHED [ 2/15] RUN apt-get update &&     apt-get install -y build-essential       bzip2       ca-certificates       curl       gcc       git       libc  0.0s
 => CACHED [ 3/15] RUN gem install rake                                                                                                                      0.0s
 => CACHED [ 4/15] RUN gem install ffi -v 1.9.18                                                                                                             0.0s
 => ERROR [ 5/15] RUN gem install gauntlt                                                                                                                  118.5s
------                                                                                                                                                            
 > [ 5/15] RUN gem install gauntlt:                                                                                                                               
#8 118.4 ERROR:  Error installing gauntlt:                                                                                                                        
#8 118.4        The last version of nokogiri (~> 1.8, >= 1.8.1) to support your Ruby & RubyGems was 1.15.6. Try installing it with `gem install nokogiri -v 1.15.6` and then running the current command again
#8 118.4    nokogiri requires Ruby version >= 3.0, < 3.4.dev. The current ruby version is 2.7.0.0.
#8 118.5 !    The 'trollop' gem has been deprecated and has been replaced by 'optimist'.
#8 118.5 !    See: https://rubygems.org/gems/optimist
#8 118.5 !    And: https://github.com/ManageIQ/optimist
#8 118.5 Successfully installed trollop-2.9.10
------
executor failed running [/bin/sh -c gem install gauntlt]: exit code: 1
make: *** [build] Error 1

Any help to resolve these errors would be appreciated.

Best, Nicola

VathekVan commented 7 months ago

Similar here:

When installing gauntlt with sudo make build, I get:

ERROR: Error installing gauntlt: The last version of nokogiri (~> 1.8, >= 1.8.1) to support your Ruby & RubyGems was 1.15.6. Try installing it withgem install nokogiri -v 1.15.6and then running the current command again nokogiri requires Ruby version >= 3.0, < 3.4.dev. The current ruby version is 2.7.0.0.

I did gem install nokogiri -v 1.15.6 and it completed successfully, but the error above persists. Please help. Thanks.