Loading pkgs/build-support/docker/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -794,6 +794,7 @@ rec { # This provides the ca bundle in common locations caCertificates = runCommand "ca-certificates" { } '' mkdir -p $out/etc/ssl/certs $out/etc/pki/tls/certs # Old NixOS compatibility. ln -s ${cacert}/etc/ssl/certs/ca-bundle.crt $out/etc/ssl/certs/ca-bundle.crt # NixOS canonical location + Debian/Ubuntu/Arch/Gentoo compatibility. Loading pkgs/build-support/docker/examples.nix +18 −0 Original line number Diff line number Diff line Loading @@ -698,4 +698,22 @@ rec { tag = "latest"; contents = [ pkgs.bashInteractive ./test-dummy ]; }; # ensure that caCertificates builds image-with-certs = buildImage { name = "curl"; tag = "latest"; copyToRoot = pkgs.buildEnv { name = "image-with-certs-root"; paths = [ pkgs.curl pkgs.dockerTools.caCertificates ]; }; config = { Entrypoint = [ "/bin/curl" ]; }; }; } Loading
pkgs/build-support/docker/default.nix +1 −0 Original line number Diff line number Diff line Loading @@ -794,6 +794,7 @@ rec { # This provides the ca bundle in common locations caCertificates = runCommand "ca-certificates" { } '' mkdir -p $out/etc/ssl/certs $out/etc/pki/tls/certs # Old NixOS compatibility. ln -s ${cacert}/etc/ssl/certs/ca-bundle.crt $out/etc/ssl/certs/ca-bundle.crt # NixOS canonical location + Debian/Ubuntu/Arch/Gentoo compatibility. Loading
pkgs/build-support/docker/examples.nix +18 −0 Original line number Diff line number Diff line Loading @@ -698,4 +698,22 @@ rec { tag = "latest"; contents = [ pkgs.bashInteractive ./test-dummy ]; }; # ensure that caCertificates builds image-with-certs = buildImage { name = "curl"; tag = "latest"; copyToRoot = pkgs.buildEnv { name = "image-with-certs-root"; paths = [ pkgs.curl pkgs.dockerTools.caCertificates ]; }; config = { Entrypoint = [ "/bin/curl" ]; }; }; }