Last active
June 5, 2018 16:35
-
-
Save infamousjoeg/870a2d2ec36cfcb07a53f5fae18f04a2 to your computer and use it in GitHub Desktop.
Bash script created to download all Ruby Gem dependencies for meta-buildpack and conjur-buildpack for manual installation of the CyberArk Conjur Service Broker in Pivotal CloudFoundry
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/bash | |
set -eo pipefail | |
mkdir repo | |
echo "##############################" | |
echo "# Installing Ruby Gem deps #" | |
echo "##############################" | |
echo "" | |
gem install rake -v 12.3.1 -i repo --no-rdoc --no-ri | |
gem install concurrent-ruby -v 1.0.5 -i repo --no-rdoc --no-ri | |
gem install minitest -v 5.11.3 -i repo --no-rdoc --no-ri | |
gem install thread_safe -v 0.3.6 -i repo --no-rdoc --no-ri | |
gem install builder -v 3.2.3 -i repo --no-rdoc --no-ri | |
gem install erubi -v 1.7.1 -i repo --no-rdoc --no-ri | |
gem install mini_portile2 -v 2.3.0 -i repo --no-rdoc --no-ri | |
gem install crass -v 1.0.4 -i repo --no-rdoc --no-ri | |
gem install rack -v 2.0.5 -i repo --no-rdoc --no-ri | |
gem install public_suffix -v 3.0.1 -i repo --no-rdoc --no-ri | |
gem install unf_ext -v 0.0.7.5 -i repo --no-rdoc --no-ri | |
gem install mime-types-data -v 3.2016.0521 -i repo --no-rdoc --no-ri | |
gem install netrc -v 0.11.0 -i repo --no-rdoc --no-ri | |
gem install method_source -v 0.9.0 -i repo --no-rdoc --no-ri | |
gem install puma -v 3.11.2 -i repo --no-rdoc --no-ri | |
gem install thor -v 0.20.0 -i repo --no-rdoc --no-ri | |
echo "" | |
echo "##############################" | |
echo "# Zipping Gems #" | |
echo "##############################" | |
echo "" | |
zip -r gem_deps.zip repo | |
echo "" | |
echo "All Ruby Gem dependencies downloaded and zipped at ${PWD}/gem_deps.zip" | |
echo "SCP the zip to your offline PCF host, unzip, and run the following command:" | |
printf "\tgem install --force --local *.gem\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment