nix/docker/heptapod: update
This commit is contained in:
parent
c79ca35b6f
commit
bf274bbc00
4 changed files with 41 additions and 5 deletions
|
@ -6,10 +6,10 @@
|
||||||
let
|
let
|
||||||
origImageArgs = {
|
origImageArgs = {
|
||||||
imageName = "octobus/heptapod";
|
imageName = "octobus/heptapod";
|
||||||
imageDigest = "sha256:a658aa09e28e1fe1fd9c29ac56b50f83d7723a7edce6577b448066f6c54ba831";
|
imageDigest = "sha256:5731200e0e14cf38fdf555a815e8192ada9cbaf82b296edd39c70579247ef00d";
|
||||||
sha256 = "sha256:1jm0r6pcsx094ya33jal30sv0rv2fqk3azvwigrlzvmczrak07sc";
|
sha256 = "sha256:00xr9pdwpkpdqi8lv77lkq1vj7j2gr00xndajh42hv8532by0n2k";
|
||||||
finalImageName = "octobus/heptapod";
|
finalImageName = "octobus/heptapod";
|
||||||
finalImageTag = "0.22.3";
|
finalImageTag = "0.23.2";
|
||||||
};
|
};
|
||||||
origImage = pkgs.dockerTools.pullImage origImageArgs;
|
origImage = pkgs.dockerTools.pullImage origImageArgs;
|
||||||
|
|
||||||
|
|
34
third_party/nixpkgs/patches/pr134071.patch
vendored
Normal file
34
third_party/nixpkgs/patches/pr134071.patch
vendored
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
From dbe9bf9848d7789b8d89fd2b0a43e3ca91f51357 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Luke Granger-Brown <git@lukegb.com>
|
||||||
|
Date: Sat, 14 Aug 2021 21:21:26 +0000
|
||||||
|
Subject: [PATCH] dockerTools.pullImage: fix for skopeo 1.4.x
|
||||||
|
|
||||||
|
skopeo 1.4.x doesn't accept --src-tls-verify as a flag to the *program*,
|
||||||
|
only as a flag to copy; we must pass it after the "copy" verb, or it
|
||||||
|
will fail with:
|
||||||
|
|
||||||
|
> FATA[0000] unknown flag: --src-tls-verify
|
||||||
|
---
|
||||||
|
pkgs/build-support/docker/default.nix | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix
|
||||||
|
index 091984585459f3..d76efac55b1a58 100644
|
||||||
|
--- a/pkgs/build-support/docker/default.nix
|
||||||
|
+++ b/pkgs/build-support/docker/default.nix
|
||||||
|
@@ -111,12 +111,13 @@ rec {
|
||||||
|
destNameTag = "${finalImageName}:${finalImageTag}";
|
||||||
|
} ''
|
||||||
|
skopeo \
|
||||||
|
- --src-tls-verify=${lib.boolToString tlsVerify} \
|
||||||
|
--insecure-policy \
|
||||||
|
--tmpdir=$TMPDIR \
|
||||||
|
--override-os ${os} \
|
||||||
|
--override-arch ${arch} \
|
||||||
|
- copy "$sourceURL" "docker-archive://$out:$destNameTag" \
|
||||||
|
+ copy \
|
||||||
|
+ --src-tls-verify=${lib.boolToString tlsVerify} \
|
||||||
|
+ "$sourceURL" "docker-archive://$out:$destNameTag" \
|
||||||
|
| cat # pipe through cat to force-disable progress bar
|
||||||
|
'';
|
||||||
|
|
1
third_party/nixpkgs/patches/series
vendored
1
third_party/nixpkgs/patches/series
vendored
|
@ -1,2 +1,3 @@
|
||||||
patch-cherrypy.patch
|
patch-cherrypy.patch
|
||||||
pomerium-fix.patch
|
pomerium-fix.patch
|
||||||
|
pr134071.patch
|
||||||
|
|
|
@ -111,12 +111,13 @@ rec {
|
||||||
destNameTag = "${finalImageName}:${finalImageTag}";
|
destNameTag = "${finalImageName}:${finalImageTag}";
|
||||||
} ''
|
} ''
|
||||||
skopeo \
|
skopeo \
|
||||||
--src-tls-verify=${lib.boolToString tlsVerify} \
|
|
||||||
--insecure-policy \
|
--insecure-policy \
|
||||||
--tmpdir=$TMPDIR \
|
--tmpdir=$TMPDIR \
|
||||||
--override-os ${os} \
|
--override-os ${os} \
|
||||||
--override-arch ${arch} \
|
--override-arch ${arch} \
|
||||||
copy "$sourceURL" "docker-archive://$out:$destNameTag" \
|
copy \
|
||||||
|
--src-tls-verify=${lib.boolToString tlsVerify} \
|
||||||
|
"$sourceURL" "docker-archive://$out:$destNameTag" \
|
||||||
| cat # pipe through cat to force-disable progress bar
|
| cat # pipe through cat to force-disable progress bar
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue