https://github.com/mfellner/comodoro
Command fleets of containers on CoreOS
https://github.com/mfellner/comodoro
Last synced: 3 months ago
JSON representation
Command fleets of containers on CoreOS
- Host: GitHub
- URL: https://github.com/mfellner/comodoro
- Owner: mfellner
- License: mit
- Created: 2015-06-14T21:39:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-05T19:22:45.000Z (almost 10 years ago)
- Last Synced: 2024-10-12T00:17:29.572Z (8 months ago)
- Language: Go
- Homepage:
- Size: 2.55 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Comodoro [](https://registry.hub.docker.com/u/mfellner/comodoro) [](https://travis-ci.org/mfellner/comodoro) [](https://coveralls.io/r/mfellner/comodoro)
*Work in progress*
## Usage
./comodoro
* `-db="/tmp/comodoro.db"`: Path to the BoltDB file
* `-log="info"`: Log level (debug|info)
* `-port=3030`: Port to listen on## Tests
**With Go test:**
got test ./...
**With [GoConvey](http://goconvey.co/)**:
$GOPATH/bin/goconvey
## Debug on CoreOS
You'll need [docker-1.6.2](https://docs.docker.com/installation/binaries/)
and [coreos-vagrant](https://github.com/coreos/coreos-vagrant/):git clone https://github.com/coreos/coreos-vagrant.git
wget https://get.docker.com/builds/Darwin/x86_64/docker-1.6.2
chmod +x docker-1.6.2Enable port forwarding of the Docker TCP socket in the config.rb of coreos-vagrant
and also forward Comodoro's APP_PORT (e.g. 3030):$expose_docker_tcp=2375
$forwarded_ports = { 3030 => 3030 }Then configure Docker to use the CoreOS server:
export DOCKER_HOST='tcp://127.0.0.1:2375'
After booting CoreOS using `vagrant up` should be able to build the
Docker container:./docker-1.6.2 build -t comodoro .
Don't forget to map the fleet socket into the container:
docker run -d --name comodoro -p 3030:3030 \
-e APP_LOGLEVEL=debug \
-v /var/run/fleet.sock:/var/run/fleet.sock \
comodoro