Merge pull request #125946 from mikroskeem/docker-update

authored by

Sandro and committed by
GitHub
1b709763 fc50ff8d

+17 -18
+17 -18
pkgs/applications/virtualization/docker/default.nix
··· 8 , moby-src 9 , runcRev, runcSha256 10 , containerdRev, containerdSha256 11 - , tiniRev, tiniSha256, buildxSupport ? false 12 # package dependencies 13 , stdenv, fetchFromGitHub, buildGoPackage 14 , makeWrapper, installShellFiles, pkg-config, glibc ··· 77 78 extraPath = optionals (stdenv.isLinux) (makeBinPath [ iproute2 iptables e2fsprogs xz xfsprogs procps util-linux git ]); 79 80 buildPhase = '' 81 export GOCACHE="$TMPDIR/go-cache" 82 # build engine ··· 88 cd - 89 ''; 90 91 - postPatch = '' 92 - patchShebangs . 93 - substituteInPlace ./hack/make.sh --replace libsystemd-journal libsystemd 94 - ''; 95 - 96 installPhase = '' 97 cd ./go/src/${goPackagePath} 98 install -Dm755 ./bundles/dynbinary-daemon/dockerd $out/libexec/docker/dockerd ··· 144 sqlite lvm2 btrfs-progs systemd libseccomp 145 ] ++ optionals (buildxSupport) [ docker-buildx ]; 146 147 # Keep eyes on BUILDTIME format - https://github.com/docker/cli/blob/${version}/scripts/build/.variables 148 buildPhase = '' 149 export GOCACHE="$TMPDIR/go-cache" ··· 160 export CGO_ENABLED=1 161 go build -tags pkcs11 --ldflags "$LDFLAGS" github.com/docker/cli/cmd/docker 162 cd - 163 - ''; 164 - 165 - postPatch = '' 166 - patchShebangs . 167 - substituteInPlace ./scripts/build/.variables --replace "set -eu" "" 168 - '' + optionalString buildxSupport '' 169 - substituteInPlace ./cli-plugins/manager/manager_unix.go --replace /usr/libexec/docker/cli-plugins \ 170 - ${lib.strings.makeSearchPathOutput "bin" "libexec/docker/cli-plugins" [docker-buildx]} 171 ''; 172 173 outputs = ["out" "man"]; ··· 211 homepage = "https://www.docker.com/"; 212 description = "An open source project to pack, ship and run any application as a lightweight container"; 213 license = licenses.asl20; 214 - maintainers = with maintainers; [ offline tailhook vdemeester periklis ]; 215 platforms = with platforms; linux ++ darwin; 216 }; 217 ··· 222 # Get revisions from 223 # https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/* 224 docker_20_10 = callPackage dockerGen rec { 225 - version = "20.10.6"; 226 rev = "v${version}"; 227 - sha256 = "15kknb26vyzjgqmn8r81a1sy1i5br6bvngqd5xljihppnxvp2gvl"; 228 moby-src = fetchFromGitHub { 229 owner = "moby"; 230 repo = "moby"; 231 rev = "v${version}"; 232 - sha256 = "1l4ra9bsvydaxd2fy7dgxp7ynpp0mrlwvcdhxiafw596559ab6qk"; 233 }; 234 runcRev = "b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7"; # v1.0.0-rc95 235 runcSha256 = "18sbvmlvb6kird4w3rqsfrjdj7n25firabvdxsl0rxjfy9r1g2xb";
··· 8 , moby-src 9 , runcRev, runcSha256 10 , containerdRev, containerdSha256 11 + , tiniRev, tiniSha256, buildxSupport ? true 12 # package dependencies 13 , stdenv, fetchFromGitHub, buildGoPackage 14 , makeWrapper, installShellFiles, pkg-config, glibc ··· 77 78 extraPath = optionals (stdenv.isLinux) (makeBinPath [ iproute2 iptables e2fsprogs xz xfsprogs procps util-linux git ]); 79 80 + postPatch = '' 81 + patchShebangs hack/make.sh hack/make/ 82 + ''; 83 + 84 buildPhase = '' 85 export GOCACHE="$TMPDIR/go-cache" 86 # build engine ··· 92 cd - 93 ''; 94 95 installPhase = '' 96 cd ./go/src/${goPackagePath} 97 install -Dm755 ./bundles/dynbinary-daemon/dockerd $out/libexec/docker/dockerd ··· 143 sqlite lvm2 btrfs-progs systemd libseccomp 144 ] ++ optionals (buildxSupport) [ docker-buildx ]; 145 146 + postPatch = '' 147 + patchShebangs man scripts/build/ 148 + substituteInPlace ./scripts/build/.variables --replace "set -eu" "" 149 + '' + optionalString buildxSupport '' 150 + substituteInPlace ./cli-plugins/manager/manager_unix.go --replace /usr/libexec/docker/cli-plugins \ 151 + ${lib.strings.makeSearchPathOutput "bin" "libexec/docker/cli-plugins" [docker-buildx]} 152 + ''; 153 + 154 # Keep eyes on BUILDTIME format - https://github.com/docker/cli/blob/${version}/scripts/build/.variables 155 buildPhase = '' 156 export GOCACHE="$TMPDIR/go-cache" ··· 167 export CGO_ENABLED=1 168 go build -tags pkcs11 --ldflags "$LDFLAGS" github.com/docker/cli/cmd/docker 169 cd - 170 ''; 171 172 outputs = ["out" "man"]; ··· 210 homepage = "https://www.docker.com/"; 211 description = "An open source project to pack, ship and run any application as a lightweight container"; 212 license = licenses.asl20; 213 + maintainers = with maintainers; [ offline tailhook vdemeester periklis mikroskeem ]; 214 platforms = with platforms; linux ++ darwin; 215 }; 216 ··· 221 # Get revisions from 222 # https://github.com/moby/moby/tree/${version}/hack/dockerfile/install/* 223 docker_20_10 = callPackage dockerGen rec { 224 + version = "20.10.7"; 225 rev = "v${version}"; 226 + sha256 = "1r854jrjph4v1n5lr82z0cl0241ycili4qr3qh3k3bmqx790cds3"; 227 moby-src = fetchFromGitHub { 228 owner = "moby"; 229 repo = "moby"; 230 rev = "v${version}"; 231 + sha256 = "0xhn11kgcbzda4z9j0rflvq0nfivizh3jrzhanwn5vnghafy4zqw"; 232 }; 233 runcRev = "b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7"; # v1.0.0-rc95 234 runcSha256 = "18sbvmlvb6kird4w3rqsfrjdj7n25firabvdxsl0rxjfy9r1g2xb";