Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wiliamsouza/marlito
https://github.com/wiliamsouza/marlito
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wiliamsouza/marlito
- Owner: wiliamsouza
- License: apache-2.0
- Created: 2014-03-12T04:43:41.000Z (almost 11 years ago)
- Default Branch: develop
- Last Pushed: 2014-06-24T00:45:45.000Z (over 10 years ago)
- Last Synced: 2024-11-18T05:18:44.623Z (about 2 months ago)
- Language: Shell
- Size: 4.02 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - marlito - (Shell)
README
marlito
=======Marlito is a project developed from scratch on distribute infrastructure stack.
Dependencies
------------This repo uses Vagrant and Virtualbox to create three CoreOS virtual machine.
* [Virtualbox](https://www.virtualbox.org/) 4.3.10 or greater.
* [Vagrant](http://www.vagrantup.com/) 1.6 or greater.Configuring
-----------Copy `user-data.sample` to `data-sample`.
```
cp user-data.sample data-sample
```Generate a new `etcd` token [here](https://discovery.etcd.io/new) and
change `discovery:` option in `data-sample`.Change `DOCKER_REGISTRY` in `user-data` to point to your
local running `docker-registry` usually it will be local ip address.Add your ssh public key in `user-data` changing `path` and `content` as
the example.```
- path: /home/core/.ssh/authorized_keys.d/
permissions: 0600
owner: core
content: |
```
Copy `config.rb.sample` to `config.rb````
cp config.rb.sample config.rb
```ssh
---Add the following to `~/.ssh/config`:
```
Host coreos
User core
HostName 172.17.8.101
IdentityFile ~/.ssh/id_rsa.pub
```Add your key:
```
ssh-add ~/.ssh/id_rsa
```Check if it is correctly loaded:
```
ssh-add -l
```Starting the cluster
--------------------It will start three nodes.
```
vagrant up
```To get in a node use.
```
vagrant ssh marlito-01
vagrant ssh marlito-02
vagrant ssh marlito-03
```Starting registry
-----------------You will need a local `docker-registry`. For more info
[see](https://github.com/wiliamsouza/marlito/blob/develop/registry/README.md)fleet
-----Configuring `fleet`.
```
export FLEETCTL_TUNNEL=172.16.8.101
``````
fleetctl list-machines
MACHINE IP METADATA
b3dac926... 172.17.8.101 -
```Loading a service:
```
cd api/systemd/
ln -s api.service [email protected]
``````
fleetctl load [email protected]
Job api.service loaded on b3dac926.../172.17.8.101
``````
fleetctl list-units
UNIT STATE LOAD ACTIVE SUB DESC MACHINE
[email protected] loaded loaded inactive dead marlito-api b3dac926.../172.17.8.101
``````
fleetctl start [email protected]
Job api.service launched on b3dac926.../172.17.8.101
``````
fleetctl list-units
UNIT STATE LOAD ACTIVE SUB DESC MACHINE
[email protected] launched loaded activating start-pre marlito-api b3dac926.../172.17.8.101
```Reloading user-data
-------------------Inside a machine run:
```
sudo coreos-cloudinit --from-file /var/lib/coreos-vagrant/vagrantfile-user-data
```