Skip to content

Commit 7232c7c

Browse files
authored
Merge pull request #92 from TheNewNormal/v1.4.8
v1.4.8
2 parents 828e993 + fd5da34 commit 7232c7c

File tree

5 files changed

+52
-2
lines changed

5 files changed

+52
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CoreOS VM for macOS
55

66
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.
77

8+
**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.
9+
810
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.
911
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
1012
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)

src/CoreOS/CoreOS-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.4.7</string>
20+
<string>1.4.8</string>
2121
<key>CFBundleVersion</key>
22-
<string>529</string>
22+
<string>531</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSMinimumSystemVersion</key>

src/bin/corevm

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
# coreos-vm cli
3+
4+
app_path=$(cat ~/coreos-osx/.env/resouces_path)
5+
6+
#
7+
start() {
8+
"${app_path}"/up.command
9+
}
10+
11+
12+
stop() {
13+
"${app_path}"/halt.command
14+
}
15+
16+
17+
status() {
18+
echo "$(/usr/local/sbin/corectl q -a core-01)"
19+
}
20+
21+
22+
ip() {
23+
echo "$(/usr/local/sbin/corectl q -i core-01)"
24+
}
25+
26+
27+
usage() {
28+
echo "Usage: corevm start|stop|status|ip"
29+
}
30+
31+
32+
case "$1" in
33+
start)
34+
start
35+
;;
36+
stop)
37+
stop
38+
;;
39+
status)
40+
status
41+
;;
42+
ip)
43+
ip
44+
;;
45+
*)
46+
usage
47+
;;
48+
esac

src/files/iTerm2.zip

2.14 MB
Binary file not shown.

0 commit comments

Comments
 (0)