Skip to content

Instantly share code, notes, and snippets.

@homelinen
Last active April 24, 2016 09:43
Show Gist options
  • Save homelinen/f8505669e458e9931f842f15936cddc0 to your computer and use it in GitHub Desktop.
Save homelinen/f8505669e458e9931f842f15936cddc0 to your computer and use it in GitHub Desktop.
Setup Mesos in DigitalOcean Userdata (Ubuntu 16.04)
#!/bin/bash
set -e
# Update the packages.
apt-get update
# Install a few utility tools.
apt-get install -y tar wget git
# Install the latest OpenJDK.
apt-get install -y openjdk-7-jdk
# Install other Mesos dependencies.
apt-get -y install build-essential python-dev python-boto libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev zlib1g-dev
## Install Mesos
mkdir -p /opt
cd /opt
# Download and extract
wget http://www.apache.org/dist/mesos/0.28.0/mesos-0.28.0.tar.gz
tar -zxf mesos-0.28.0.tar.gz
ln -s mesos-0.28.0 mesos
cd mesos
# Configure and build.
mkdir build
cd build
../configure
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment