Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
Conflicts:
	src/first-init.command
	src/vagrant_up.command
  • Loading branch information
rimusz committed Apr 28, 2014
2 parents 89bb166 + ddd435a commit d606c5c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ CoreOS-Vagrant GUI for Mac OS X
============================

CoreOS-Vagrant GUI for Mac OS X is a Mac Status bar App which works like a wrapper around the coreos-vagrant command line tool.
[CoreOS](https://github.com/coreos/coreos-vagrant) is a Linux distribution made specifically to run [Docker](https://www.docker.io/) containers.
[CoreOS](https://coreos.com) is a Linux distribution made specifically to run [Docker](https://www.docker.io/) containers.
[CoreOS-Vagrant](https://github.com/coreos/coreos-vagrant) is made to run on VirtualBox and VMWare VMs.

![CoreOS-Vagrant-GUI L](coreos-vagrant-gui.png "CoreOS-Vagrant-GUI")

Expand Down Expand Up @@ -33,15 +34,17 @@ If you do not have it, download [iTerm 2](http://www.iterm2.com/#/section/downlo
3) user-data file will have fleet, etcd, [Docker Socket for the API](https://coreos.com/docs/launching-containers/building/customizing-docker) and [DockerUI](https://github.com/crosbymichael/dockerui) enabled
4) docker 4243 port will be set for docker OS X client to work properly
5) Will set VM IP to 172.17.8.99 for DockerUI to properly open in a web browser
6) Will download and install docker OS X client to ~/coreos-osx/bin/
6) Will download and install fleet, etcd and docker OS X clients to ~/coreos-osx/bin/
7) Will run vagrant up to initialise VM
8) Shared folder between host and VM will be created under ~/coreos-osx/share
9) Will forward 80, 9000 and docker ports pool (49000..49900) including 4243 from host to vagrant VM.
````

How it works
------------

Just start ````CoreOS Vagrant OSX GUI```` application and you will find a small icon with the CoreOS logo in the Status Bar.
For now it only supports a standalone CoreOS VM, cluster support might come at same stage later one.

* There you can ````Up````, ````Suspend````, ````Halt````, ````Reload```` CoreOS vagrant VM
* Under ````Up & OS shell```` OS Shell will be opened when ````vagrant up```` finishes up and will have such environment set:
Expand All @@ -59,6 +62,13 @@ TO-DOs
------

* Make sed to parse Vagrantfile with folder sharing, network IP and ports changes after git clone is done
* Make it easier to add/delete docker ports.


Other links
-----------
Also you might like my other [boot2docker GUI for OS X](https://github.com/rimusz/boot2docker-gui-osx) project for [boot2docker](https://github.com/boot2docker/boot2docker),
as I use both projects depending on the work I need to do.


Other links
Expand Down
Binary file modified coreos-vagrant-gui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/first-init.command
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ ssh-add ~/.vagrant.d/insecure_private_key
# Add current user to sudoers
echo "Add current user to sudoers for the shared folder access from the VM"
sudo ~/coreos-osx/bin/install_vagrant_sudoers.command
<<<<<<< HEAD
=======
sudo chmod +w /etc/exports
>>>>>>> dev

# donwload etcdctl and fleetctl
cd ~/coreos-osx/bin
Expand Down
2 changes: 0 additions & 2 deletions src/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ hostname: coreos-osx

coreos:
etcd:
#generate a new token for each unique cluster from https://discovery.etcd.io/new
#discovery: https://discovery.etcd.io/token
addr: $public_ipv4:4001
peer-addr: $public_ipv4:7001
units:
Expand Down
4 changes: 4 additions & 0 deletions src/vagrant_up.command
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ eval $(echo "export DOCKER_HOST=tcp://localhost:4243")
# path to the bin folder where we store our binary files
eval $(echo "export PATH=$PATH:${HOME}/coreos-osx/bin")
# set fleetctl endpoint
<<<<<<< HEAD
eval $(echo "export FLEETCTL_ENDPOINT=http://localhost")
=======
eval $(echo "export FLEETCTL_ENDPOINT=127.0.0.1:2222")
>>>>>>> dev

cd ~/coreos-osx/share

Expand Down

0 comments on commit d606c5c

Please sign in to comment.