Commit f140b549 authored by Ross Light's avatar Ross Light
Browse files

dockerTools: add missing mkdir to caCertificates derivation

parent 998f0f79
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.
+18 −0
Original line number Diff line number Diff line
@@ -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" ];
    };
  };
}