Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Latest commit

 

History

History
70 lines (45 loc) · 1.91 KB

READMEWINDOWS.md

File metadata and controls

70 lines (45 loc) · 1.91 KB

Building Transporter on Windows

  1. Install Go

First step, download and install Go. Go to https://golang.org/dl/ and install the go1.4.windows-amd64.msi file offered.

  1. Install Git

Go supports multiple source code control systems and you need to get the tools to handle them. Refer to https://code.google.com/p/go-wiki/wiki/GoGetTools for the canonical current list.

First and foremost, we need Git...

Go to http://git-scm.com/downloads and download the Windows version. Install that. It's a good idea to select to option to put the Git Bash shell either on your desktop or somewhere equally accessible.

  1. Install Mercurial

The other source code control tool you'll need for this build is Mercurial, so go to http://mercurial.selenic.com/wiki/Download and download Mercurial-3.2.3 (64-bit msi).

  1. Make directories

Start the Git Bash shell. We now need to make the go build hierachy:

mkdir go

We need to set the GOPATH environment variable. This is going to point at the directory we just made and lets Go locate other packages. We'll just set it temporarily here like so:

export GOPATH=`pwd`/go/

Nowe we can build the rest of the tree:

cd go
mkdir pkg bin src
cd src
mkdir github.com
cd github.com
mkdir compose
cd compose
  1. Clone transporter

We now can download the transporter source into this directory

git clone https://github.com/compose/transporter
  1. Get the dependencies

And with the source downloaded, we can go into the directory and ask it to download all the libraries it depends upon.

cd transporter
go get -a ./cmd/transporter
  1. Build the transporter

Finally, we can issue the build command

go build -a ./cmd/transporter

and that should give us transporter.exe in the current directory.