Skip to content

Instantly share code, notes, and snippets.

@kolloch
Last active August 29, 2015 14:22
Show Gist options
  • Save kolloch/6fa64299f8a85ec1c6ba to your computer and use it in GitHub Desktop.
Save kolloch/6fa64299f8a85ec1c6ba to your computer and use it in GitHub Desktop.
Marathon dev setup
keystore
config.sh

Just some files to start mesos masters/slaves.

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"
#!/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
#!/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
#!/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