lol

Merge pull request #27137 from vdemeester/update-docker-1706

docker: 17.03.2-ce -> 17.06.0-ce

authored by

Tim Steinbach and committed by
GitHub
37f59d2e 14702c39

+60 -50
+1 -1
pkgs/applications/virtualization/containerd/default.nix
··· 17 17 buildInputs = [ removeReferencesTo go ]; 18 18 19 19 preBuild = '' 20 - ln -s $(pwd) vendor/src/github.com/docker/containerd 20 + ln -s $(pwd) vendor/src/github.com/containerd/containerd 21 21 ''; 22 22 23 23 installPhase = ''
+56 -44
pkgs/applications/virtualization/docker/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, makeWrapper, removeReferencesTo, pkgconfig 2 - , go-md2man, go, containerd, runc, docker-proxy, tini 2 + , go-md2man, go, containerd, runc, docker-proxy, tini, libtool 3 3 , sqlite, iproute, bridge-utils, devicemapper, systemd 4 4 , btrfs-progs, iptables, e2fsprogs, xz, utillinux, xfsprogs 5 5 , procps 6 6 }: 7 - 8 - # https://github.com/docker/docker/blob/master/project/PACKAGERS.md 9 - # https://github.com/docker/docker/blob/TAG/hack/dockerfile/binaries-commits 10 7 11 8 with lib; 12 9 ··· 23 20 24 21 src = fetchFromGitHub { 25 22 owner = "docker"; 26 - repo = "docker"; 23 + repo = "docker-ce"; 27 24 rev = "v${version}"; 28 25 sha256 = sha256; 29 26 }; ··· 68 65 69 66 buildInputs = [ 70 67 makeWrapper removeReferencesTo pkgconfig go-md2man go 71 - sqlite devicemapper btrfs-progs systemd 68 + sqlite devicemapper btrfs-progs systemd libtool 72 69 ]; 73 70 74 71 dontStrip = true; ··· 78 75 ++ optional (btrfs-progs == null) "exclude_graphdriver_btrfs" 79 76 ++ optional (devicemapper == null) "exclude_graphdriver_devicemapper"; 80 77 81 - # systemd 230 no longer has libsystemd-journal as a separate entity from libsystemd 82 - postPatch = '' 83 - substituteInPlace ./hack/make.sh --replace libsystemd-journal libsystemd 84 - substituteInPlace ./daemon/logger/journald/read.go --replace libsystemd-journal libsystemd 85 - ''; 86 - 87 78 buildPhase = '' 88 - patchShebangs . 79 + # build engine 80 + cd ./components/engine 89 81 export AUTO_GOPATH=1 90 82 export DOCKER_GITCOMMIT="${rev}" 91 83 ./hack/make.sh dynbinary 84 + cd - 85 + 86 + # build cli 87 + cd ./components/cli 88 + # Mimic AUTO_GOPATH 89 + mkdir -p .gopath/src/github.com/docker/ 90 + ln -sf $PWD .gopath/src/github.com/docker/cli 91 + export GOPATH="$PWD/.gopath:$GOPATH" 92 + export GITCOMMIT="${rev}" 93 + export VERSION="${version}" 94 + source ./scripts/build/.variables 95 + export CGO_ENABLED=1 96 + go build -tags pkcs11 --ldflags "$LDFLAGS" github.com/docker/cli/cmd/docker 97 + cd - 92 98 ''; 93 99 100 + # systemd 230 no longer has libsystemd-journal as a separate entity from libsystemd 101 + patchPhase = '' 102 + patchShebangs . 103 + substituteInPlace ./components/engine/hack/make.sh --replace libsystemd-journal libsystemd 104 + substituteInPlace ./components/engine/daemon/logger/journald/read.go --replace libsystemd-journal libsystemd 105 + substituteInPlace ./components/cli/scripts/build/.variables --replace "set -eu" "" 106 + ''; 107 + 94 108 outputs = ["out" "man"]; 95 109 96 110 extraPath = makeBinPath [ iproute iptables e2fsprogs xz xfsprogs procps utillinux ]; 97 111 98 112 installPhase = '' 99 - install -Dm755 ./bundles/${version}/dynbinary-client/docker-${version} $out/libexec/docker/docker 100 - install -Dm755 ./bundles/${version}/dynbinary-daemon/dockerd-${version} $out/libexec/docker/dockerd 113 + install -Dm755 ./components/cli/docker $out/libexec/docker/docker 114 + install -Dm755 ./components/engine/bundles/${version}/dynbinary-daemon/dockerd-${version} $out/libexec/docker/dockerd 101 115 makeWrapper $out/libexec/docker/docker $out/bin/docker \ 102 116 --prefix PATH : "$out/libexec/docker:$extraPath" 103 117 makeWrapper $out/libexec/docker/dockerd $out/bin/dockerd \ ··· 111 125 ln -s ${docker-tini}/bin/tini-static $out/libexec/docker/docker-init 112 126 113 127 # systemd 114 - install -Dm644 ./contrib/init/systemd/docker.service $out/etc/systemd/system/docker.service 128 + install -Dm644 ./components/engine/contrib/init/systemd/docker.service $out/etc/systemd/system/docker.service 115 129 116 - # completion 117 - install -Dm644 ./contrib/completion/bash/docker $out/share/bash-completion/completions/docker 118 - install -Dm644 ./contrib/completion/fish/docker.fish $out/share/fish/vendor_completions.d/docker.fish 119 - install -Dm644 ./contrib/completion/zsh/_docker $out/share/zsh/site-functions/_docker 130 + # completion (cli) 131 + install -Dm644 ./components/cli/contrib/completion/bash/docker $out/share/bash-completion/completions/docker 132 + install -Dm644 ./components/cli/contrib/completion/fish/docker.fish $out/share/fish/vendor_completions.d/docker.fish 133 + install -Dm644 ./components/cli/contrib/completion/zsh/_docker $out/share/zsh/site-functions/_docker 120 134 121 - # Include contributed man pages 122 - man/md2man-all.sh -q 135 + # Include contributed man pages (cli) 136 + # Generate man pages from cobra commands 137 + echo "Generate man pages from cobra" 138 + cd ./components/cli 139 + mkdir -p ./man/man1 140 + go build -o /tmp/gen-manpages github.com/docker/cli/man 141 + /tmp/gen-manpages --root . --target ./man/man1 142 + 143 + # Generate legacy pages from markdown 144 + echo "Generate legacy manpages" 145 + ./man/md2man-all.sh -q 146 + 123 147 manRoot="$man/share/man" 124 148 mkdir -p "$manRoot" 125 - for manDir in man/man?; do 149 + for manDir in ./man/man?; do 126 150 manBase="$(basename "$manDir")" # "man1" 127 151 for manFile in "$manDir"/*; do 128 152 manName="$(basename "$manFile")" # "docker-build.1" ··· 140 164 homepage = http://www.docker.com/; 141 165 description = "An open source project to pack, ship and run any application as a lightweight container"; 142 166 license = licenses.asl20; 143 - maintainers = with maintainers; [ offline tailhook ]; 167 + maintainers = with maintainers; [ offline tailhook vdemeester ]; 144 168 platforms = platforms.linux; 145 169 }; 146 170 }; 147 171 148 - docker_17_03 = dockerGen rec { 149 - version = "17.03.2-ce"; 150 - rev = "f5ec1e2"; # git commit 151 - sha256 = "1y3rkzgg8vpjq61y473lnh0qyc6msl4ixw7ci2p56fyqrhkmhf96"; 152 - runcRev = "54296cf40ad8143b62dbcaa1d90e520a2136ddfe"; 153 - runcSha256 = "0ylymx7pi4jmvbqj94j2i8qspy8cpq0m91l6a0xiqlx43yx6qi2m"; 154 - containerdRev = "4ab9917febca54791c5f071a9d1f404867857fcc"; 155 - containerdSha256 = "06f2gsx4w9z4wwjhrpafmz6c829wi8p7crj6sya6x9ii50bkn8p6"; 156 - tiniRev = "949e6facb77383876aeff8a6944dde66b3089574"; 157 - tiniSha256 = "0zj4kdis1vvc6dwn4gplqna0bs7v6d1y2zc8v80s3zi018inhznw"; 158 - }; 159 - 160 - docker_17_05 = dockerGen rec { 161 - version = "17.05.0-ce"; 162 - rev = "90d35abf7b3535c1c319c872900fbd76374e521c"; # git commit 163 - sha256 = "1m4fcawjj14qws57813wjxjwgnrfxgxnnzlj61csklp0s9dhg7df"; 164 - runcRev = "9c2d8d184e5da67c95d601382adf14862e4f2228"; 165 - runcSha256 = "131jv8f77pbdlx88ar0zjwdsp0a5v8kydaw0w0cl3i0j3622ydjl"; 166 - containerdRev = "9048e5e50717ea4497b757314bad98ea3763c145"; 167 - containerdSha256 = "1r9xhvzzh7md08nqb0rbp5d1rdr7jylb3da954d0267i0kh2iksa"; 172 + docker_17_06 = dockerGen rec { 173 + version = "17.06.0-ce"; 174 + rev = "02c1d876176546b5f069dae758d6a7d2ead6bd48"; # git commit 175 + sha256 = "0wrg4ygcq4c7f2bwa7pgc7y33idg0hijavx40588jaglz4k8sqpm"; 176 + runcRev = "992a5be178a62e026f4069f443c6164912adbf09"; 177 + runcSha256 = "0ylkbn5rprw5cgxazvrwj7balikpfm8vlybwdbfpwnsqk3gc6p8k"; 178 + containerdRev = "cfb82a876ecc11b5ca0977d1733adbe58599088a"; 179 + containerdSha256 = "0rix0mv203fn3rcxmpqdpb54l1a0paqplg2xgldpd943qi1rm552"; 168 180 tiniRev = "949e6facb77383876aeff8a6944dde66b3089574"; 169 181 tiniSha256 = "0zj4kdis1vvc6dwn4gplqna0bs7v6d1y2zc8v80s3zi018inhznw"; 170 182 };
-1
pkgs/applications/virtualization/docker/proxy.nix
··· 27 27 platforms = docker.meta.platforms; 28 28 }; 29 29 } 30 -
+3 -4
pkgs/top-level/all-packages.nix
··· 13689 13689 }; 13690 13690 13691 13691 inherit (callPackage ../applications/virtualization/docker { }) 13692 - docker_17_03 13693 - docker_17_05; 13692 + docker_17_06; 13694 13693 13695 - docker = docker_17_03; 13696 - docker-edge = docker_17_05; 13694 + docker = docker_17_06; 13695 + docker-edge = docker_17_06; 13697 13696 13698 13697 docker-proxy = callPackage ../applications/virtualization/docker/proxy.nix { }; 13699 13698