Last active
August 30, 2017 16:20
-
-
Save randerzander/36082231a5e64e74e91dc73b7c19d27b to your computer and use it in GitHub Desktop.
vm-prep
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
sudo su | |
yum update -y | |
yum install -y wget git | |
curl -fsSL https://get.docker.com/ | sh | |
service docker start | |
curl -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
mv /usr/local/bin/docker-compose /usr/bin | |
usermod -aG docker centos | |
exit | |
git clone https://github.com/randerzander/docker-hdp | |
cd docker-hdp | |
docker-compose -f examples/compose/single-container.yml build |
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
sudo su | |
apt update | |
apt upgrade -y | |
apt install -y wget openjdk-8-jdk | |
curl -fsSL https://get.docker.com/ | sh | |
service docker start | |
curl -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
mv /usr/local/bin/docker-compose /usr/bin | |
usermod -aG docker ubuntu | |
exit | |
mkdir ~/artifacts | |
cd ~/artifacts | |
wget http://archive.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz | |
tar -xzvf apache-maven-3.5.0-bin.tar.gz | |
echo "PATH=$PATH:~/artifacts/apache-maven-3.5.0/bin" >> ~/.bashrc | |
echo "JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/" >> ~/.bashrc | |
source ~/.bashrc | |
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 | |
sudo apt-get update | |
sudo apt-get install sbt | |
git clone https://github.com/randerzander/docker-hdp | |
cd docker-hdp | |
docker-compose -f examples/compose/single-container.yml build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment