Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.21 KB

READMEWINDOWS.md

File metadata and controls

53 lines (35 loc) · 1.21 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 to https://git-for-windows.github.io/ 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. 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. Build the transporter

Finally, we can issue the build command

go build ./cmd/transporter

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