Skip to content

Commit

Permalink
Merge pull request #92 from TheNewNormal/v1.4.8
Browse files Browse the repository at this point in the history
v1.4.8
  • Loading branch information
rimusz authored Jul 26, 2016
2 parents 828e993 + fd5da34 commit 7232c7c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ CoreOS VM for macOS

It leverages macOS native Hypervisor framework of using [xhyve](https://github.com/xhyve-xyz/xhyve) based [corectl](https://github.com/TheNewNormal/corectl) command line tool without any needs to use VirtualBox or similar virtualisation software.

**New:** After successful install you can control CoreOS VM via `corevm` cli as well. Cli resides in `~/coreos-osx/bin` folder and has simple commands: `corevm start|stop|status|ip`. Just copy the `corevm` to your pre-set path and you are good to control Vm via cli, it is specially handy for automation tasks.

The best use case of this App is to allow to build/test [Docker](https://www.docker.com) and [rkt](https://coreos.com/rkt/) images localy.
You can push your Docker images to [Docker Registry](https://github.com/docker/distribution) on `192.168.64.1:5000` run by [Corectl App](https://github.com/TheNewNormal/corectl.app), to store
your Docker images and share with Kubernetes Apps for macOS: [Kube-solo](https://github.com/TheNewNormal/kube-solo-osx) and [Kube-Cluster](https://github.com/TheNewNormal/kube-cluster-osx)
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions src/CoreOS/CoreOS-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.7</string>
<string>1.4.8</string>
<key>CFBundleVersion</key>
<string>529</string>
<string>531</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
48 changes: 48 additions & 0 deletions src/bin/corevm
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash
# coreos-vm cli

app_path=$(cat ~/coreos-osx/.env/resouces_path)

#
start() {
"${app_path}"/up.command
}


stop() {
"${app_path}"/halt.command
}


status() {
echo "$(/usr/local/sbin/corectl q -a core-01)"
}


ip() {
echo "$(/usr/local/sbin/corectl q -i core-01)"
}


usage() {
echo "Usage: corevm start|stop|status|ip"
}


case "$1" in
start)
start
;;
stop)
stop
;;
status)
status
;;
ip)
ip
;;
*)
usage
;;
esac
Binary file modified src/files/iTerm2.zip
Binary file not shown.

0 comments on commit 7232c7c

Please sign in to comment.