-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env/darwin/macstadium: more OS X setup notes for VMWare-based builders
Updates golang/go#9495 Change-Id: Id87d401d3f7e6fd464039cff4e58a5eda14424cf Reviewed-on: https://go-review.googlesource.com/28570 Reviewed-by: Chris Broadfoot <[email protected]>
- Loading branch information
Showing
11 changed files
with
121 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
usage: FORCE | ||
# See Makefile targets. | ||
exit 1 | ||
|
||
FORCE: | ||
|
||
upload: FORCE | ||
go install golang.org/x/build/cmd/upload | ||
upload --verbose --gzip --file=run-builder-darwin-10_10.sh -cacheable=false -public=true go-builder-data/run-builder-darwin-10_10.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
url="https://storage.googleapis.com/go-builder-data/buildlet.darwin-amd64.gz" | ||
while ! curl -f -o buildlet.gz "$url"; do | ||
echo | ||
echo "curl failed to fetch $url" | ||
echo "Sleeping before retrying..." | ||
sleep 5 | ||
done | ||
|
||
set -x | ||
gunzip -f buildlet.gz | ||
chmod +x buildlet | ||
|
||
export GO_BUILDER_ENV=macstadium_vm | ||
exec ./buildlet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# This is the file baked into the VM image. | ||
# | ||
# It fetches https://storage.googleapis.com/go-builder-data/run-builder-darwin-10_10.gz | ||
# (which might be a shell script or an executable) and runs it to do the rest. | ||
|
||
set -e | ||
url="https://storage.googleapis.com/go-builder-data/run-builder-darwin-10_10.gz" | ||
while ! curl -f -o run-builder.gz "$url"; do | ||
echo | ||
echo "curl failed to fetch $url" | ||
echo "Sleeping before retrying..." | ||
sleep 2 | ||
done | ||
|
||
set -x | ||
gunzip -f run-builder.gz | ||
chmod +x run-builder | ||
exec ./run-builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
usage: FORCE | ||
# See Makefile targets. | ||
exit 1 | ||
|
||
FORCE: | ||
|
||
upload: FORCE | ||
go install golang.org/x/build/cmd/upload | ||
upload --verbose --gzip --file=run-builder-darwin-10_11.sh -cacheable=false -public=true go-builder-data/run-builder-darwin-10_11.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
url="https://storage.googleapis.com/go-builder-data/buildlet.darwin-amd64.gz" | ||
while ! curl -f -o buildlet.gz "$url"; do | ||
echo | ||
echo "curl failed to fetch $url" | ||
echo "Sleeping before retrying..." | ||
sleep 5 | ||
done | ||
|
||
set -x | ||
gunzip -f buildlet.gz | ||
chmod +x buildlet | ||
|
||
export GO_BUILDER_ENV=macstadium_vm | ||
exec ./buildlet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# This is the file baked into the VM image. | ||
# | ||
# It fetches https://storage.googleapis.com/go-builder-data/run-builder-darwin-10_11.gz | ||
# (which might be a shell script or an executable) and runs it to do the rest. | ||
|
||
set -e | ||
url="https://storage.googleapis.com/go-builder-data/run-builder-darwin-10_11.gz" | ||
while ! curl -f -o run-builder.gz "$url"; do | ||
echo | ||
echo "curl failed to fetch $url" | ||
echo "Sleeping before retrying..." | ||
sleep 2 | ||
done | ||
|
||
set -x | ||
gunzip -f run-builder.gz | ||
chmod +x run-builder | ||
exec ./run-builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
env/darwin/macstadium/10_8/run-builder-darwin-10_8.sh
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
ip=$(ifconfig | grep "inet 10.50.0." | perl -npe 's/.*\.(\d+) netmask.*/$1/') | ||
|
||
echo "Running with hostname ms_$ip" | ||
url="https://storage.googleapis.com/go-builder-data/buildlet.darwin-amd64.gz" | ||
while ! curl -f -o buildlet.gz "$url"; do | ||
echo | ||
echo "curl failed to fetch $url" | ||
echo "Sleeping before retrying..." | ||
sleep 5 | ||
done | ||
|
||
# For now use the buildlet baked into the image. We'll probably want to stop | ||
# doing that later, though: | ||
set -x | ||
gunzip -f buildlet.gz | ||
chmod +x buildlet | ||
|
||
while true; do | ||
$HOME/bin/buildlet \ | ||
-coordinator=farmer.golang.org \ | ||
-halt=false \ | ||
-hostname=ms_$ip \ | ||
-reverse=darwin-amd64-10_8 || sleep 5 | ||
done | ||
export GO_BUILDER_ENV=macstadium_vm | ||
exec ./buildlet |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters