-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmesos_dist.txt
27 lines (14 loc) · 1.25 KB
/
mesos_dist.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
vm id/pwd user01/1234
http://archive.apache.org/dist/mesos/1.8.0/mesos-1.8.0.tar.gz
# mesos docker-ubuntu
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv DF7D54CBE56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
# Add the repository
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get -y update
#zookeeper install
docker run -d -p 2181:2181 --name zookeeper zookeeper:3.4.11
#mesos-master install
docker run -it -d --name mesos-master -p 172.17.0.1:5050:5050 --link zookeeper -e MESOS_ZK=zk://zookeeper:2181/mesos -e MESOS_QUORUM=1 -e MESOS_CLUSTE=docker-compose -e MESOS_HOSTNAME=172.17.0.1 -e MESOS_WORK_DIR=/var/tmp/mesos -e MESOS_LOG_DIR=/var/log/mesos mesosphere/mesos-master:1.4.1
docker run -it -d --name mesos-slave -p 172.17.0.1:5051:5051 --link zookeeper:zookeeper --link mesos-master:mesos-master -e MESOS_MASTER=zk://zookeeper:2181/mesos -e MESOS_CONTAINERIZERS=docker -e MESOS_PORT=5051 -e MESOS_RESOURCES=ports:[11000-11999] -e MESOS_HOSTNAME=172.17.0.1 -e MESOS_WORK_DIR=/var/log/mesos -e MESOS_SYSTEMD_ENABLE_SUPPORT="false" --volume=/var/run/docker.sock:/var/run/docker.sock mesosphere/mesos-slave:1.4.1