ContainerCraft / containercraft.github.io

Home of ContainerCraft.io
https://ContainerCraft.io
Apache License 2.0
1 stars 2 forks source link

centos7 support wanted #1

Closed KathrynMorgan closed 6 years ago

KathrynMorgan commented 6 years ago

Developer support requires CentOS 7.x setup instructions

trentfowler commented 6 years ago

Installing Jekyll with Ruby 2.3 in CentOS 7

Jekyll doesn't work with the default 2.0 Ruby version that you currently get in the yum repos but you can use RVM to install 2.3 which works great with Jekyll.

First Install Dependencies:

# yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel sqlite-devel

Install Ruby Version Manager:

# curl -sSL http://rvm.io/mpapis.asc | gpg --import - # curl -L get.rvm.io | bash -s stable

Note: Use HTTP instead of HTTPS unlike source below.

Load RVM:

# source /etc/profile.d/rvm.sh # rvm reload

Install Ruby 2.3:

# rvm install 2.3.3

Check version installed and set as default:

# rvm list => ruby-2.3.3

# rvm use 2.3.3 --default

Source

Then just install Jekyll with RubyGems:

# gem install jekyll

# gem install bundle

KathrynMorgan commented 6 years ago

Adding the following to README.md

Centos 7.4
1) $ lxc launch images:centos/7/amd64 trent-centos-t01 -p  physical-net
2) $ lxc exec trent-centos-t01 bash
3) $ yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel sqlite-devel which
4) $ curl -sSL http://rvm.io/mpapis.asc | gpg --import -
5) $ curl -L get.rvm.io | bash -s stable
6) $ usermod -a -G rvm $USER_NAME 
7) $ source /etc/profile.d/rvm.sh
8) $ rvm reload
9) $ rvm use 2.3.3 --default
10)$ rvm list
11)$ rvm use 2.3.3 --default 
KathrynMorgan commented 6 years ago

Closing issue, centos support install guide feature request merged in commit 8160c8996761a777e47aa7fc7e8001f706082b0b