bootstrap-centos.sh #1

  • //
  • cbd/
  • main/
  • test/
  • bootstrap-centos.sh
  • View
  • Commits
  • Open Download .zip Download (911 B)
#!/bin/bash
declare Version=1.0.4

# This bootstraps a new CentOS server:
# * Ensuring that it has current packages.
# * Ensure that it can connect to the Perforce Package Repository.

echo "Running ${0##*/} v$Version."

cd /tmp

# Even though it's a test/demo environment, we don't want any
# ShellShock or Heartbleed or whatnot.
sudo yum update -y
sudo yum install epel-release -y

# Tools required to build Python, P4Python, Perl, P4Perl, etc.
sudo yum groupinstall -y "Development tools"
sudo yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

# Enable connection to Perforce Package Repository.
rpm --import http://package.perforce.com/perforce.pubkey

echo -e "[perforce]\nname=Perforce\nbaseurl=http://package.perforce.com/yum/rhel/6/x86_64/\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d/perforce.repo

exit 0
# Change User Description Committed
#1 21633 C. Thomas Tyler Populate -o //guest/perforce_software/cbd/main/...
//cbd/main/....
//guest/perforce_software/cbd/main/test/bootstrap-centos.sh
#4 15940 C. Thomas Tyler Fixed a broken 'echo' to update the shared library load default path
to include /usr/local/lib.

I'm not 100% sure this update of the library path is needed; it has been
working fine without it (as it was broken anyway due to a typo).  This was
inherited from the SDP test suite bootstrap script from used as a baseline
for the CBD test suite.

#review-15941 @robert_cowham
#3 15009 C. Thomas Tyler Promoted CBD development work to main from dev.
#2 11366 C. Thomas Tyler Promoted CBD from dev to main.
#1 11356 C. Thomas Tyler Promotion from Dev Branch.

       What's included:
       * CBD scripts for Streams as demonstrated at Merge 2014.
       * Deletion of files from the original PoC that aren't needed.

       What's coming later, still work in progress on the dev branch:
       * Documentation.
       * Test Suite with complete Vagrant-based Test Environment.
       * CBD scripts for Classic.
//guest/perforce_software/cbd/dev/test/bootstrap-centos.sh
#1 11354 C. Thomas Tyler Started work on Vagrant test harness.