Red Hat Nordics SA Demo lab

We are Red Hat Solution Architects, in this blog we are sharing content that we have used to create our own demos and labs. Some of it has proven to be useful starting points for our customers and partners. You are free to use it as is. If you use it, and it breaks your stuff, you get to keep both pieces ;-). Ansible, Tower, CloudForms, Satellite, RHV, IdM, RHEL, Gluster, Ceph. Disclaimer, This is not a Red Hat official blog, nor a service and we will not provide support on this.

19 November 2018

Install Jekyll on RHEL7

Written by Ilkka Tengvall

How I installed Jekyll on RHEL7

While I was creating this blog I needed to get Jekyll tooling on my laptop. I happen to be fan of Linux, and decided to eat our own dogfood. I recently installed RHEL7 on my laptop instead of the normal Fedora.

Jekyll logo

Jekyll works fine on RHEL, but like often, you run into having stable (old) stuff installed on your system. Jekyll will require more fresh ruby than what comes by default in RHEL7. You need feature called Software Collections, which is a way to provide developers more fresh set of tools, with shorter lifecycle for support.

Here are the command you need to install Jekyll on RHEL7:

sudo subscription-manager repos --enable rhel-workstation-rhscl-7-rpms
sudo yum install rh-ruby23 rh-ruby23-rubygem-bundler rh-ruby23-ruby-devel zlib-devel
sudo yum group install "Development Tools"
scl enable rh-ruby23 bash
gem install jekyll
jekyll new redhatnordicssa
cd redhatnordicssa
bundle exec jekyll serve

What is that gibberish all about?

The above commands are explained here line by line:

  1. enable repository for Software collections (SC)
  2. install newer ruby stuff from SC
  3. enter SC shell
  4. install jekyll using ruby gem
  5. create new Jekyll site
  6. enter the directory for your site
  7. start local server so you can test your site on http://localhost:4000

Then you can go ahead and start following Jekyll tutorials. Have fun!

BR, ikke


Written by Ilkka Tengvall   Twitter Linkedin Github
I work as an SA at Red Hat Nordics, mainly with speeding things up using automation and hybrid cloud.

tags: random