Just some files to start mesos masters/slaves.
Last active
August 29, 2015 14:22
-
-
Save kolloch/6fa64299f8a85ec1c6ba to your computer and use it in GitHub Desktop.
Marathon dev setup
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
keystore | |
config.sh |
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
export PROJECT_DIR=~/Projects/mesosphere | |
export MESOS_DIR=~/opt/mesos-0.22.0 | |
#export MESOS_DIR=/usr/local | |
export LD_LIBRARY_PATH=$MESOS_DIR/lib:$LD_LIBRARY_PATH | |
mkdir -p "$PROJECT_DIR/lib/mesos" "$PROJECT_DIR/log/mesos" |
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
#!/bin/bash | |
. config.sh | |
$MESOS_DIR/sbin/mesos-master \ | |
--ip=127.0.0.1 -port=5050 \ | |
--zk=zk://127.0.0.1:2181/mesos \ | |
--log_dir=$PROJECT_DIR/log/mesos \ | |
--cluster=cluster1 --hostname=node1 \ | |
--quorum=1 --registry=in_memory \ | |
--work_dir=$PROJECT_DIR/lib/mesos \ | |
--roles=public |
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
#!/bin/bash | |
. config.sh | |
sudo ifconfig lo0 alias 127.0.0.2 up | |
$MESOS_DIR/sbin/mesos-slave \ | |
--master=zk://127.0.0.1:2181/mesos \ | |
--log_dir=$PROJECT_DIR/log/mesos \ | |
--containerizers=docker,mesos \ | |
--executor_registration_timeout=5mins \ | |
--hostname=public-node \ | |
--ip=127.0.0.2 \ | |
--attributes=host:node1 \ | |
--default_role=public \ | |
--port=5052 \ | |
--work_dir=/tmp/mesos-public2 |
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
#!/bin/bash | |
. config.sh | |
$MESOS_DIR/sbin/mesos-slave \ | |
--master=zk://127.0.0.1:2181/mesos \ | |
--log_dir=$PROJECT_DIR/log/mesos \ | |
--containerizers=docker,mesos \ | |
--executor_registration_timeout=5mins \ | |
--hostname=node1 \ | |
--ip=127.0.0.1 \ | |
--attributes=host:node1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment