Launch bootstrap script to create mesos/marathon cluster based on coreos
599
Create a 3 node Marathon / Mesos cluster with a single master node and 2 slave nodes. Two environments are currently supported.
$ git clone https://github.com/force12/coreos-marathon/
$ cd coreos-marathon
Boxes are named core-01..03.
$ vagrant up
$ vagrant ssh core-01
Once all the Docker images have been downloaded and started the web UIs will be availabled at. Note: This can take up to 10 minutes and the images themselves are large.
vagrant destroy
Register for an account with Packet.
Clone this project.
$ git clone https://github.com/force12/coreos-marathon/
$ cd coreos-marathon
# .env.packet
API_TOKEN=YOUR_API_KEY
PROJECT_NAME=example
DEVICE_PREFIX=core
PLAN=baremetal_1
# Parsippany, NJ
FACILITY=ewr1
# Either coreos_beta or coreos_alpha
OPERATING_SYSTEM=coreos_beta
$ cp .env.packet .env
$ bundle install
$ bundle exec rake packet:cluster:create
Cluster is being provisioned
$ bundle exec rake packet:cluster:destroy
Cluster has been shutdown
The oneshot unit launches a Docker container using the image quay.io/rossf7/coreos-marathon:latest. This image is based on Alpine Linux and installs Ruby and the fleetctl binary. The container runs a Ruby script that starts the cluster using fleet.
Thanks to Packet for the great support while we automated the cluster setup.
This template is based upon these projects.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)This code is licensed under the MIT license.
Content type
Image
Digest
Size
57.5 MB
Last updated
over 10 years ago
docker pull bretif/coreos-marathon