Git Product home page Git Product logo

Comments (3)

purefn avatar purefn commented on August 28, 2024

Aha! I tried moving things around a little more and nothing was working. Then I removed the reproducible = false; and it worked as expected. So now I'm stuck on how to debug this issue.

from nix2container.

nlewo avatar nlewo commented on August 28, 2024

I'm surprised reproducible=false changes the behavior since it is not doing a lot of thing: it only puts the tarball into a file (while it is only generated on the fly with reproducible=true).
Would you be able to share an reproducible=false example which doesn't work?


the base image must be pulled manually outside nix as it's from a private registry
and nixpkgs.dockerTools.pullImage doesn't support using login credentials

BTW, this is supported by nix2container: https://github.com/nlewo/nix2container#authentication

from nix2container.

purefn avatar purefn commented on August 28, 2024

I let it run for a while and it repeated that line many times but did eventually finish. When I looked at the image-core.json file I see layers like this

       {
            "digest": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
            "size": 224948736,
            "diff_ids": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
            "paths": [
                {
                    "path": "/nix/store/ycnrbmp51j7nnffyp83ql7gqis3hl81j-openssl-3.0.9-bin"
                }
            ],
            "mediatype": "application/vnd.oci.image.layer.v1.tar",
            "layer-path": "/nix/store/y8i41ns2600lqig56x2jhjq5s9ji6rq6-layers.json/8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6.tar"
        },
        {
            "digest": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
            "size": 224948736,
            "diff_ids": "sha256:8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6",
            "paths": [
                {
                    "path": "/nix/store/zrrqmaz7iph084inqn9gj03q1g2fcpxx-libuv-1.44.2-dev"
                }
            ],
            "mediatype": "application/vnd.oci.image.layer.v1.tar",
            "layer-path": "/nix/store/y8i41ns2600lqig56x2jhjq5s9ji6rq6-layers.json/8eef30edcefaf1777902f9f6630a88b2b1106e9d3c5e19a0eba93b46d40936e6.tar"
        },

So they do have the same digest and size, but they contain different paths. I'm not sure why that is, but it doesn't seem to cause any problems.

from nix2container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.