diff --git a/run.sh b/run.sh deleted file mode 100644 index 2d615b68..00000000 --- a/run.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -# Workaround for https://github.com/jpetazzo/dind/issues/86 -rm -rf /var/lib/docker/btrfs - -IFACE='eth0' -IP=$(ip -4 address show $IFACE | grep 'inet' | sed 's/.*inet \([0-9\.]\+\).*/\1/') - -echo "" >> /etc/hosts - -for i in $(seq 1 $NUMBER_OF_SLAVES) -do - mkdir -p /var/lib/mesos/$i - echo "$IP slave$i" >> /etc/hosts - - echo "" >> /etc/supervisor.conf - - echo "[program:mesos-slave$i]" >> /etc/supervisor.conf - echo "user=root" >> /etc/supervisor.conf - echo "command=mesos-slave --port=505$i --master=zk://localhost:2181/mesos --work_dir=/var/lib/mesos/$i --no-switch_user --hostname=slave$i --resources=%(ENV_SLAVE${i}_RESOURCES)s" >> /etc/supervisor.conf - echo "redirect_stderr=true" >> /etc/supervisor.conf - echo "process_name=mesos_slave_$i" >> /etc/supervisor.conf - echo "" >> /etc/supervisor.conf - -done - -sed -i s/@@NUM_SLAVES@@/${NUMBER_OF_SLAVES}/g /etc/supervisor.conf -supervisord -c /etc/supervisor.conf -e error