Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 72a5b85

Browse files
committed
Merge branch 'dev'
2 parents dfb4e7d + 673747d commit 72a5b85

File tree

4 files changed

+36
-27
lines changed

4 files changed

+36
-27
lines changed

src/CoreOS Cluster GUI/AppDelegate.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
3434
}
3535
else
3636
{
37-
// NSString *msg = [NSString stringWithFormat:@"%@ ", @"CoreOS-Vagrant Cluster was not set, run from menu 'Setup' - 'Initial setup of CoreOS-Vagrant Cluster' !!! "];
38-
// [self displayWithMessage:@"CoreOS-Vagrant Cluster" infoText:msg];
39-
40-
NSAlert *alert = [[NSAlert alloc] init];
37+
NSAlert *alert = [[NSAlert alloc] init];
4138
[alert addButtonWithTitle:@"OK"];
4239
[alert addButtonWithTitle:@"Cancel"];
4340
[alert setMessageText:@"CoreOS-Vagrant Cluster was not set."];
@@ -69,7 +66,7 @@ - (IBAction)Start:(id)sender {
6966
{
7067
// send a notification on to the screen
7168
NSUserNotification *notification = [[NSUserNotification alloc] init];
72-
notification.title = @"coreos-vagrant cluster will be up shortly";
69+
notification.title = @"CoreOS-Vagrant Cluster will be up shortly";
7370
notification.informativeText = @"and OS shell will be opened";
7471
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
7572

src/CoreOS Cluster GUI/CoreOS Cluster GUI-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
<key>CFBundlePackageType</key>
2020
<string>APPL</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>0.2.2</string>
22+
<string>0.2.3</string>
2323
<key>CFBundleSignature</key>
2424
<string>????</string>
2525
<key>CFBundleVersion</key>
26-
<string>57</string>
26+
<string>61</string>
2727
<key>LSApplicationCategoryType</key>
2828
<string>public.app-category.utilities</string>
2929
<key>LSMinimumSystemVersion</key>

src/coreos-vagrant-install.command

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,18 @@
1313
mkdir ~/coreos-osx-cluster/bin
1414
mkdir ~/coreos-osx-cluster/fleet
1515

16-
# download latest coreos-vagrant
17-
git clone https://github.com/coreos/coreos-vagrant/ ~/coreos-osx-cluster/github
18-
1916
# cd to App's Resources folder
2017
cd "$1"
2118

2219
# copy gsed to ~/coreos-osx-cluster/bin
2320
cp "$1"/gsed ~/coreos-osx-cluster/bin
21+
chmod 755 ~/coreos-osx-cluster/bin/gsed
2422

23+
# copy files to ~/coreos-osx-cluster/tmp for later use of first-init.command
2524
# Vagrantfile
26-
cp ~/coreos-osx-cluster/github/Vagrantfile ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
27-
# chnage VM names to corec-..
28-
sed -i "" 's/core-%02d/corec-%02d/' ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
29-
# change network subnet
30-
sed -i "" 's/172.17.8.#{i+100}/172.17.9.#{i+100}/g' ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
31-
# change corec-01 host ssh port forward
3225
cp "$1"/Vagrantfile ~/coreos-osx-cluster/tmp/Vagrantfile
33-
"$1"/gsed -i "/#config.vm.synced_folder/r $HOME/coreos-osx-cluster/tmp/Vagrantfile" ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
34-
rm -f ~/coreos-osx-cluster/tmp/Vagrantfile
35-
3626
# config.rb file
37-
# enable discovery setup
38-
cat "$1"/config.rb ~/coreos-osx-cluster/github/config.rb.sample > ~/coreos-osx-cluster/coreos-vagrant/config.rb
39-
# set a size of the CoreOS cluster created by Vagrant to 3
40-
sed -i "" 's/#$num_instances=1/$num_instances=3/' ~/coreos-osx-cluster/coreos-vagrant/config.rb
41-
42-
# user-data file
43-
cp ~/coreos-osx-cluster/github/user-data.sample ~/coreos-osx-cluster/coreos-vagrant/user-data
27+
cp "$1"/config.rb ~/coreos-osx-cluster/tmp/config.rb
4428

4529
# initial init
4630
open -a iTerm.app "$1"/first-init.command

src/first-init.command

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,41 @@
66
# Created by Rimantas on 01/04/2014.
77
# Copyright (c) 2014 Rimantas Mocevicius. All rights reserved.
88

9+
### getting files from github and setting them up
10+
echo ""
11+
echo "Downloading latest coreos-vagrant files from github: "
12+
git clone https://github.com/coreos/coreos-vagrant/ ~/coreos-osx-cluster/github
13+
echo "Done downloading from github !!!"
14+
echo ""
15+
16+
# Vagrantfile
17+
cp ~/coreos-osx-cluster/github/Vagrantfile ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
18+
# change VM names to corec-..
19+
sed -i "" 's/core-%02d/corec-%02d/' ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
20+
# change network subnet
21+
sed -i "" 's/172.17.8.#{i+100}/172.17.9.#{i+100}/g' ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
22+
# change corec-01 host ssh port forward
23+
~/coreos-osx-cluster/bin/gsed -i "/#config.vm.synced_folder/r $HOME/coreos-osx-cluster/tmp/Vagrantfile" ~/coreos-osx-cluster/coreos-vagrant/Vagrantfile
24+
rm -f ~/coreos-osx-cluster/tmp/Vagrantfile
25+
26+
# config.rb file
27+
# enable discovery setup
28+
cat ~/coreos-osx-cluster/tmp/config.rb ~/coreos-osx-cluster/github/config.rb.sample > ~/coreos-osx-cluster/coreos-vagrant/config.rb
29+
# set a size of the CoreOS cluster created by Vagrant to 3
30+
sed -i "" 's/#$num_instances=1/$num_instances=3/' ~/coreos-osx-cluster/coreos-vagrant/config.rb
31+
rm -f ~/coreos-osx-cluster/tmp/config.rb
32+
33+
# user-data file
34+
cp ~/coreos-osx-cluster/github/user-data.sample ~/coreos-osx-cluster/coreos-vagrant/user-data
35+
###
36+
937
### Set release channel
1038
LOOP=1
1139
while [ $LOOP -gt 0 ]
1240
do
1341
VALID_MAIN=0
1442
echo " "
15-
echo " CoreOS Release Channel:"
43+
echo "Set CoreOS Release Channel:"
1644
echo " 1) Alpha "
1745
echo " 2) Beta "
1846
echo " 3) Stable "

0 commit comments

Comments
 (0)