Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update docker version to 1.13.0. - Introduce now docker-proxy package (from libnetmork). - Use overrideDerivation to set the correct version for docker. - Update tini to make sure we can build it static. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
- Loading branch information
1 parent
e9109b1
commit 74d4d3e
Showing
4 changed files
with
91 additions
and
13 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
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,36 @@ | ||
{ stdenv, lib, fetchFromGitHub, go, docker }: | ||
|
||
with lib; | ||
|
||
stdenv.mkDerivation rec { | ||
name = "docker-proxy-${rev}"; | ||
rev = "0f534354b813003a754606689722fe253101bc4e"; | ||
|
||
src = fetchFromGitHub { | ||
inherit rev; | ||
owner = "docker"; | ||
repo = "libnetwork"; | ||
sha256 = "1ah7h417llcq0xzdbp497pchb9m9qvjhrwajcjb0ybrs8v889m31"; | ||
}; | ||
|
||
buildInputs = [ go ]; | ||
|
||
buildPhase = '' | ||
mkdir -p .gopath/src/github.com/docker | ||
ln -sf $(pwd) .gopath/src/github.com/docker/libnetwork | ||
GOPATH="$(pwd)/.gopath:$(pwd)/Godeps/_workspace" go build -ldflags="$PROXY_LDFLAGS" -o docker-proxy ./cmd/proxy | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp docker-proxy $out/bin | ||
''; | ||
|
||
meta = { | ||
description = "Docker proxy binary to forward traffic between host and containers"; | ||
license = licenses.asl20; | ||
homepage = https://github.com/docker/libnetwork; | ||
maintainers = with maintainers; [vdemeester]; | ||
platforms = docker.meta.platforms; | ||
}; | ||
} |
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