Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

swarm-frontend for bare metals #6

Open
navinSing opened this issue Dec 11, 2015 · 7 comments
Open

swarm-frontend for bare metals #6

navinSing opened this issue Dec 11, 2015 · 7 comments

Comments

@navinSing
Copy link

what would be the steps for bare-metals ..
want to setup local env

@amitshukla
Copy link
Contributor

@navinSing can you clarify what you are looking for? E.g.: are you trying to use these compose files to setup a mesos or kubernetes cluster on your local machine without using Virtual machines?

@navinSing
Copy link
Author

Looking for just 2 things ..

  1. Setup script for the slave machine.. I mean what will be the config/
    order .. Mesos slave ... Or docker slave along with the deamon params to
    connect to consul.
  2. And local docker registry for the LAN.

I spent like 3 days trying to do this without success.

It will be great if you can help me here.

Thanks

On Dec 11, 2015 11:54 PM, "Amit Shukla" notifications@github.com wrote:

@navinSing https://github.com/navinSing can you clarify what you are
looking for? E.g.: are you trying to use these compose files to setup a
mesos or kubernetes cluster on your local machine without using Virtual
machines?


Reply to this email directly or view it on GitHub
#6 (comment)
.

@amitshukla
Copy link
Contributor

@navinSing if you look at init_swarm.sh, you should be able to use this command as a template to get swarm on the machine:
echo "----- create a machine for swarm node 5 -----"
docker-machine create -d virtualbox --swarm
--swarm-discovery="consul://$(docker-machine ip mh-keystore):8500"
--engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500"
--engine-opt="cluster-advertise=eth1:2376"
swarm-node-05

After this, you should be able to use the compose file to configure Mesos master, slaves etc.

Look at the docker-machine documentation for your specific scenarion. For example, this page lists how to use docker-machine to configure a machine in AWS:
https://docs.docker.com/machine/drivers/aws/

@navinSing
Copy link
Author

@amitshukla , sorry.. let me clarify .. i am looking for bare metals .. at this moment not aws or vagrant.

Assume that i have a linux machine. what all things i should do to join it to the swarm. I was specifically looking at mesos example.

so i will have to install swarm-agent and mesos slave .. what will be the order. What ssh keys sharing i need to do ..

Also if i can get a local docker registry it will be great..

@amitshukla
Copy link
Contributor

@navinSing please read this article: https://blog.codefresh.io/docker-machine-basics/
And use the generic driver (Ubuntu server over ssh).

@navinSing
Copy link
Author

nah, that is not what i was looking for it simply installs docker-machine on that host, looking for a swarm cluster to connect to the rest of the machines. The example doesn't use ssh keys etc..

@navinSing
Copy link
Author

any updates on this .. please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants