Last active
July 12, 2016 10:40
-
-
Save jassoncasey/6178dc0ba180d20eb59a5d497f217043 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# Preconditions | |
# - CentOS 7 min ISO install | |
# - Executed by user with sudo NOPASSWD | |
# - Internet access | |
EDITORS=(emacs nano vim) | |
REPOS=(git hg svn) | |
LANGS=(gcc gcc-c++ perl java-1.8.0-openjdk-devel) | |
TOOLS=(autogen autoconf automake flex bison bzip2 unzip zip \ | |
gperf dejagnu tex texinfo patch docker libtool \ | |
libxslt python34 wget lzip bc) | |
BUILDDEPS=(ncurses-devel openssl-devel) | |
# Install minimum necessary bootstrap dependencies | |
sudo yum -y update epel-release | |
sudo yum -y install ntp | |
sudo systemctl start ntpd | |
sudo yum -y install ${EDITORS[*]} ${REPOS[*]} ${LANGS[*]} ${TOOLS[*]} ${BUILDDEPS[*]} | |
sudo yum clean all | |
# Ensure we are using vim over vi | |
echo "alias vi=vim" >> .bash_profile | |
echo "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk" >> .bash_profile | |
source .bash_profile | |
# Setup vim syntax coloring | |
git clone https://gist.github.com/6d82d2bb7eb6ea57e64a.git | |
mv 6d82d2bb7eb6ea57e64a/.vimrc ~/.vimrc | |
rm -rf 6d82d2bb7eb6ea57e64a | |
# Compile the bazel build system | |
git clone -b 0.3.0 https://github.com/bazelbuild/bazel.git | |
cd bazel | |
./compile.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment