Skip to content

Instantly share code, notes, and snippets.

@jpkrohling
Last active March 9, 2019 03:29
Show Gist options
  • Select an option

  • Save jpkrohling/1cc47a5c5dad638e04e8ab4618d762b8 to your computer and use it in GitHub Desktop.

Select an option

Save jpkrohling/1cc47a5c5dad638e04e8ab4618d762b8 to your computer and use it in GitHub Desktop.
hugo vs. jekyll
$ docker run --rm --name hugo -i -t fedora /bin/bash
[root@4cb109a331f9 /]# time dnf install hugo git -y > /dev/null 2>&1
real 0m44.956s
user 0m29.467s
sys 0m3.592s
[root@4cb109a331f9 /]# time git clone https://github.com/theute/kiali.io.git > /dev/null 2>&1
real 1m23.461s
user 0m3.596s
sys 0m2.794s
[root@4cb109a331f9 /]# cd kiali.io/
[root@4cb109a331f9 kiali.io]# hugo -w server
| EN
+------------------+-----+
Pages | 11
Paginator pages | 0
Non-page files | 0
Static files | 805
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 132 ms
Watching for changes in /kiali.io/{content,data,layouts,static,themes}
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
$ docker run --rm --name jekyll -i -t fedora /bin/bash
[root@50d6d34dba81 /]# time dnf install rubygem-jekyll git -y > /dev/null 2>&1
real 0m50.364s
user 0m33.463s
sys 0m4.297s
[root@50d6d34dba81 /]# time git clone https://github.com/kiali/kiali.github.io.git > /dev/null 2>&1
real 0m8.212s
user 0m1.154s
sys 0m0.703s
[root@50d6d34dba81 /]# cd kiali.github.io/
[root@50d6d34dba81 kiali.github.io]# bundle exec jekyll serve
bash: bundle: command not found
[root@50d6d34dba81 kiali.github.io]# time dnf install rubygem-bundler -y > /dev/null 2>&1
real 0m3.851s
user 0m2.223s
sys 0m0.227s
[root@50d6d34dba81 kiali.github.io]# bundle exec jekyll serve
Could not find gem 'github-pages' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
[root@50d6d34dba81 kiali.github.io]# time bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching activesupport 4.2.10
Installing activesupport 4.2.10
Fetching public_suffix 2.0.5
Installing public_suffix 2.0.5
Fetching addressable 2.5.2
Installing addressable 2.5.2
Using bundler 1.16.1
Fetching coffee-script-source 1.11.1
Installing coffee-script-source 1.11.1
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Using colorator 1.1.0
Fetching ruby-enum 0.7.2
Installing ruby-enum 0.7.2
Fetching commonmarker 0.17.9
Installing commonmarker 0.17.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
/usr/bin/ruby -r ./siteconf20180625-61-vumzc8.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /usr/share/gems/gems/commonmarker-0.17.9 for inspection.
Results logged to /usr/lib64/gems/ruby/commonmarker-0.17.9/gem_make.out
An error occurred while installing commonmarker (0.17.9), and Bundler cannot continue.
Make sure that `gem install commonmarker -v '0.17.9'` succeeds before bundling.
In Gemfile:
github-pages was resolved to 186, which depends on
jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
jekyll-commonmark was resolved to 1.2.0, which depends on
commonmarker
real 0m7.731s
user 0m3.676s
sys 0m0.925s
[root@50d6d34dba81 kiali.github.io]# time dnf install ruby-devel -y > /dev/null 2>&1
real 0m4.928s
user 0m2.285s
sys 0m0.438s
[root@50d6d34dba81 kiali.github.io]# time bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.10
Using public_suffix 2.0.5
Using addressable 2.5.2
Using bundler 1.16.1
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using coffee-script 2.4.1
Using colorator 1.1.0
Using ruby-enum 0.7.2
Fetching commonmarker 0.17.9
Installing commonmarker 0.17.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
/usr/bin/ruby -r ./siteconf20180625-168-1k7n6wz.rb extconf.rb
creating Makefile
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
make "DESTDIR=" clean
sh: make: command not found
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
make "DESTDIR="
sh: make: command not found
make failed, exit code 127
Gem files will remain installed in /usr/share/gems/gems/commonmarker-0.17.9 for inspection.
Results logged to /usr/lib64/gems/ruby/commonmarker-0.17.9/gem_make.out
An error occurred while installing commonmarker (0.17.9), and Bundler cannot continue.
Make sure that `gem install commonmarker -v '0.17.9'` succeeds before bundling.
In Gemfile:
github-pages was resolved to 186, which depends on
jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
jekyll-commonmark was resolved to 1.2.0, which depends on
commonmarker
real 0m2.666s
user 0m2.242s
sys 0m0.358s
[root@50d6d34dba81 kiali.github.io]# time dnf install make -y > /dev/null 2>&1
real 0m6.337s
user 0m3.011s
sys 0m1.329s
[root@50d6d34dba81 kiali.github.io]# time bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.10
Using public_suffix 2.0.5
Using addressable 2.5.2
Using bundler 1.16.1
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using coffee-script 2.4.1
Using colorator 1.1.0
Using ruby-enum 0.7.2
Fetching commonmarker 0.17.9
Installing commonmarker 0.17.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
/usr/bin/ruby -r ./siteconf20180625-248-1miaky3.rb extconf.rb
creating Makefile
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
make "DESTDIR=" clean
rm -f
rm -f commonmarker.so *.o *.bak mkmf.log .*.time
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC
-std=c99 -m64 -o arena.o -c arena.c
make: gcc: Command not found
make: *** [Makefile:243: arena.o] Error 127
make failed, exit code 2
Gem files will remain installed in /usr/share/gems/gems/commonmarker-0.17.9 for inspection.
Results logged to /usr/lib64/gems/ruby/commonmarker-0.17.9/gem_make.out
An error occurred while installing commonmarker (0.17.9), and Bundler cannot continue.
Make sure that `gem install commonmarker -v '0.17.9'` succeeds before bundling.
In Gemfile:
github-pages was resolved to 186, which depends on
jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
jekyll-commonmark was resolved to 1.2.0, which depends on
commonmarker
real 0m2.876s
user 0m2.377s
sys 0m0.409s
[root@50d6d34dba81 kiali.github.io]# time dnf install gcc -y > /dev/null 2>&1
real 0m17.158s
user 0m7.963s
sys 0m3.762s
[root@50d6d34dba81 kiali.github.io]# time bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using concurrent-ruby 1.0.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.10
Using public_suffix 2.0.5
Using addressable 2.5.2
Using bundler 1.16.1
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using coffee-script 2.4.1
Using colorator 1.1.0
Using ruby-enum 0.7.2
Fetching commonmarker 0.17.9
Installing commonmarker 0.17.9 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
/usr/bin/ruby -r ./siteconf20180625-347-1ciprrf.rb extconf.rb
creating Makefile
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
make "DESTDIR=" clean
rm -f
rm -f commonmarker.so *.o *.bak mkmf.log .*.time
current directory: /usr/share/gems/gems/commonmarker-0.17.9/ext/commonmarker
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC
-std=c99 -m64 -o arena.o -c arena.c
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
make: *** [Makefile:243: arena.o] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/share/gems/gems/commonmarker-0.17.9 for inspection.
Results logged to /usr/lib64/gems/ruby/commonmarker-0.17.9/gem_make.out
An error occurred while installing commonmarker (0.17.9), and Bundler cannot continue.
Make sure that `gem install commonmarker -v '0.17.9'` succeeds before bundling.
In Gemfile:
github-pages was resolved to 186, which depends on
jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
jekyll-commonmark was resolved to 1.2.0, which depends on
commonmarker
real 0m2.655s
user 0m2.246s
sys 0m0.324s
[root@50d6d34dba81 kiali.github.io]# exit ## I give up, have other stuff to do...
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment