ros-infrastructure / robots.ros.org

The source for robots.ros.org
http://robots.ros.org
Other
74 stars 157 forks source link

test_site.bash error with jekyll gem install #267

Closed thomaspeyrucain closed 1 year ago

thomaspeyrucain commented 1 year ago

Hello,

When trying to run the bash script to test the site locally I get this error:

~/robots.ros.org$ bash test_site.bash 
+ set -o errexit
+ docker build -t robotssite .
[+] Building 20.5s (7/12)                                                                                                                                                                                          
 => [internal] load .dockerignore                                                                                                                                                                             0.2s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                          0.1s
 => => transferring dockerfile: 593B                                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/ubuntu:focal                                                                                                                                               0.0s
 => [1/9] FROM docker.io/library/ubuntu:focal                                                                                                                                                                 0.0s
 => CACHED [2/9] RUN apt-get update && apt-get install -q -y   curl   net-tools   python   python-yaml   build-essential   ruby-dev   nodejs   npm                                                            0.0s
 => CACHED [3/9] RUN echo "gem: --no-document" >> /etc/gemrc                                                                                                                                                  0.0s
 => ERROR [4/9] RUN gem install jekyll                                                                                                                                                                       20.3s
------                                                                                                                                                                                                             
 > [4/9] RUN gem install jekyll:                                                                                                                                                                                   
#0 3.560 Successfully installed public_suffix-5.0.1                                                                                                                                                                
#0 3.560 Successfully installed addressable-2.8.1                                                                                                                                                                  
#0 3.560 Successfully installed colorator-1.1.0                                                                                                                                                                    
#0 3.560 Building native extensions. This could take a while...                                                                                                                                                    
#0 4.714 Successfully installed http_parser.rb-0.8.0
#0 4.714 Building native extensions. This could take a while...
#0 20.21 ERROR:  Error installing jekyll:
#0 20.21    The last version of sass-embedded (~> 1.54) to support your Ruby & RubyGems was 1.58.0. Try installing it with `gem install sass-embedded -v 1.58.0` and then running the current command again
#0 20.21    sass-embedded requires RubyGems version >= 3.3.22. The current RubyGems version is 3.1.2. Try 'gem update --system' to update RubyGems itself.
#0 20.21 Successfully installed eventmachine-1.2.7
#0 20.21 Successfully installed em-websocket-0.5.3
#0 20.21 Successfully installed concurrent-ruby-1.2.0
#0 20.21 Successfully installed i18n-1.12.0
#0 20.21 Successfully installed google-protobuf-3.21.12-x86_64-linux
------
Dockerfile:17
--------------------
  15 |     
  16 |     RUN echo "gem: --no-document" >> /etc/gemrc
  17 | >>> RUN gem install jekyll
  18 |     RUN gem install jekyll-sitemap
  19 |     RUN gem install rouge
--------------------
ERROR: failed to solve: process "/bin/sh -c gem install jekyll" did not complete successfully: exit code: 1

I am on Ubuntu 20.04 with updated packages I tested adding the --no-cache tag to the docker build command but it always goes to that error