Skip to content

Commit

Permalink
Merge pull request #2 from phase2/develop
Browse files Browse the repository at this point in the history
Corrected a few more references to rig, and elaborated the build script.
  • Loading branch information
febbraro authored Feb 16, 2017
2 parents db7ec1f + 3e9b61d commit cc38caa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
21 changes: 18 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,24 @@ go get github.com/mitchellh/gox

godep restore

# Build for mac
# Build for platforms
gox -cgo -osarch="Darwin/amd64" -output="build/darwin/rig"
gox -osarch="Linux/amd64" -output="build/linux/rig"
gox -osarch="Windows/amd64" -output="build/windows/rig"

# Build for windows and linux
gox -osarch="Linux/amd64" -osarch="Windows/amd64" -output="build/{{.OS}}/rig"
# Bundle for GitHub

# Get version
VERSION=`build/darwin/rig --version 2>&1 | grep 'rig version' | awk '{print $3}'`

# Create archives for publishing to github
cp scripts/docker-machine-watch-rsync.sh build/darwin/.
pushd build/darwin
tar czf ../rig-${VERSION}-darwin-amd64.tar.gz rig docker-machine-watch-rsync.sh
popd
pushd build/linux
tar czf ../rig-${VERSION}-linux-amd64.tar.gz rig
popd
pushd build/windows
zip ../rig-${VERSION}-windows-amd64.zip rig.exe
popd
4 changes: 2 additions & 2 deletions scripts/docker-machine-watch-rsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Examples:
> Watch for changes under ~/Projects/supercoolthing/app and rsync them into the Docker Machine named dev
$ docker-machine-watch-rsync -m dev -e .devtools-watch-ignore ~/Projects/supercoolthing/app
$ docker-machine-watch-rsync -m dev -e .rig-watch-ignore ~/Projects/supercoolthing/app
> Watch for changes under ~/Projects/supercoolthing/app excluding the patterns in .devtools-watch-ignore and rsync them into the Docker Machine named dev
> Watch for changes under ~/Projects/supercoolthing/app excluding the patterns in .rig-watch-ignore and rsync them into the Docker Machine named dev
EOF
exit 0
Expand Down
2 changes: 1 addition & 1 deletion start.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (cmd *Start) Run(c *cli.Context) error {
dash := Dashboard{}
dash.LaunchDashboard(machine)

out.Info.Println("Your Phase2 Dev Tools VM is ready to use")
out.Info.Println("Outrigger is ready to use")

return nil
}

0 comments on commit cc38caa

Please sign in to comment.