swarm - sinherle/Recipes GitHub Wiki
Building Docker Swarm
Docker Swarm can be built and tested on Linux on z Systems (RHEL 7.1 ans SLES 12) by following these instructions.
Version
1.1.0
Section 1: Install the following Dependencies
- Please refer Go recipe to install Go.
- git
RHEL7:
sudo yum install -y git
SLES12:
sudo zypper install -y git
Note: Git version 1.8.5 or later is compatible with this Go version to build Docker Swarm.To check installed git version and update git version >= 1.8.5 by building it from source execute the steps below.
- Check the version of existing git executable. ``` which git $(which git) --version
_**Note:** If above command gives git version lesser than 1.8.5, then follow below steps, else jump to Step no. 2 i.e. **'Set GOPATH environment variable'**._
2. Install build dependencies for git
```
sudo yum install -y asciidoc-8.6.8-5.el7.noarch openssl-devel curl-devel expat-devel perl-ExtUtils-MakeMaker gettext-devel tar
- Download the git source code ``` cd /<source_root>/ git clone https://github.com/git/git.git cd /<source_root>/git/ git checkout v1.8.5
4. Build and Install git
```
make prefix=<build-location> && sudo make prefix=<build-location> install
- Export git binary path to PATH environment variable ``` export PATH=/bin:$PATH
### Section 2: Set GOPATH environment variable
export GOPATH=/<source_root>/:/<source_root>/src/github.com/docker/swarm/Godeps/_workspace/
export PATH=$HOME/go/bin:$PATH
### Section 3: Download the source and install Docker Swarm
3.1 . Get dependent tools
cd /<source_root>/
go get github.com/tools/godep
3.2 Download the source from gihub
mkdir -p /<source_root>/src/github.com/docker
cd /<source_root>/src/github.com/docker
git clone -b v1.1.0 https://github.com/docker/swarm.git
3.4 Install Docker Swarm
go install github.com/docker/swarm/
## References:
https://github.com/docker/swarm.git