nix/docker/heptapod: update

This commit is contained in:
Luke Granger-Brown 2021-08-14 21:54:09 +00:00
parent c79ca35b6f
commit bf274bbc00
4 changed files with 41 additions and 5 deletions

View file

@ -6,10 +6,10 @@
let
origImageArgs = {
imageName = "octobus/heptapod";
imageDigest = "sha256:a658aa09e28e1fe1fd9c29ac56b50f83d7723a7edce6577b448066f6c54ba831";
sha256 = "sha256:1jm0r6pcsx094ya33jal30sv0rv2fqk3azvwigrlzvmczrak07sc";
imageDigest = "sha256:5731200e0e14cf38fdf555a815e8192ada9cbaf82b296edd39c70579247ef00d";
sha256 = "sha256:00xr9pdwpkpdqi8lv77lkq1vj7j2gr00xndajh42hv8532by0n2k";
finalImageName = "octobus/heptapod";
finalImageTag = "0.22.3";
finalImageTag = "0.23.2";
};
origImage = pkgs.dockerTools.pullImage origImageArgs;

View 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
'';

View file

@ -1,2 +1,3 @@
patch-cherrypy.patch
pomerium-fix.patch
pr134071.patch

View file

@ -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
'';