Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Last active September 21, 2024 19:19
Show Gist options
  • Save drewkerrigan/8ee7f47907f73b4bc926d5b6582354d7 to your computer and use it in GitHub Desktop.
Save drewkerrigan/8ee7f47907f73b4bc926d5b6582354d7 to your computer and use it in GitHub Desktop.
Make Local Universe

Make Local Universe

Vagrant

Create a CentOS 7 VM:

mkdir centos7
cd centos7
vagrant init madorn/centos7
vagrant up
vagrant ssh

Follow Centos 7 directions.

CentOS 7

Copy make_universe.sh, modify the included packages if necessary (current list is ~10-11GB).

chmod 755 make_universe.sh
sudo -s
./make_universe.sh

This process will take some time.

#!/bin/bash
tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
yum upgrade --assumeyes --tolerant
yum update --assumeyes
yum install -y docker-engine-1.11.2
systemctl start docker
systemctl enable docker
yum install gcc wget openssl-devel zip git -y
cd /usr/src
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
tar xzf Python-3.5.2.tgz
cd Python-3.5.2
./configure
make altinstall
cd ../
rm Python-3.5.2.tgz
export PATH=$PATH:/usr/local/bin
cd /usr/src
git clone https://github.com/mesosphere/universe.git
cd universe/docker/local-universe/
pyvenv-3.5 env
source env/bin/activate
pip install jsonschema
sed -i -e 's/os.makedirs(str(docker_artifacts))/os.makedirs(str(docker_artifacts), exist_ok=True)/' /usr/src/universe/scripts/local-universe.py
sed -i -e 's/--selected/--include="dcos-enterprise-cli,arangodb3,chronos,artifactory,cassandra,confluent-kafka,dse,gitlab,jenkins,marathon,spark,concord,elasticsearch,etcd,exhibitor,hdfs,linkerd,marathon-lb,memsql,mr-redis,namerd,ruxit,zeppelin"/' Makefile
sed -i -e 's/ca-certificates//' Dockerfile.base
make base
make local-universe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment