Created
April 24, 2018 19:35
-
-
Save mykelalvis/fbc3dd759d9f37f59d2572ad594c5df2 to your computer and use it in GitHub Desktop.
Install inspec on clean Amazon Linux2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum install -y gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel ruby-devel gcc-c++ jq git patch | |
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm autolibs 3 | |
rvm install 2.4.1 | |
gem install inspec | |
inspec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment