Skip to content

broken docker image nushell/nu:devel #646

Closed

Description

@jeka

In the last few days the docker image nushell/nu:devel is broken.

$podman  run -it --rm nushell/nu:devel 
nu: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Activity

  1. sophiajt commented on Sep 11, 2019

    @sophiajt
    Contributor

    Thanks for letting us know, we'll investigate.

  2. vsoch commented on Sep 11, 2019

    @vsoch
    Contributor

    hey @jeka see #650 - I missed those dependencies in the README, sorry about that!

    Also really cool you are using podman! :)

  3. jeka commented on Sep 12, 2019

    @jeka
    Author

    @vsoch I saw this PR, but these are not the correct packages to satisfy dependencies.
    openssl-dev and pkgconfig are needed at build time only, not at runtime. And you are not building nushell at this time.
    I don't know correct names of the needed packages for Ubuntu, but you need to install libssl1.0.0 or something alike. And you don't need pkgconfig.

  4. vsoch commented on Sep 12, 2019

    @vsoch
    Contributor

    I followed instructions in the README - if someone could please get the listing right I’ll do another change...

  5. jeka commented on Sep 12, 2019

    @jeka
    Author

    OK, I spent some time on this.
    The problem is not missing libssl. It is installed but the version in the rust:1.37-slim image is 1.1 already.
    The version nushell is build agains is 1.0 as that is the version available in ubuntu16.04 (the image nu-base is based on)

  6. vsoch commented on Sep 12, 2019

    @vsoch
    Contributor

    Interesting! I'm kind of perplexed because the image has worked before (and now it doesn't). When was this dependency added? I don't see any install of libssl in the azure pipelines, so is the feature not tested?

    It's kind of perplexing that the same base and install commands leads to different versions - here is nu-base:

    root@fcbeacc43e48:/code# ldconfig --verbose | grep ssl      
    ldconfig: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
    ldconfig: Path `/lib/x86_64-linux-gnu' given more than once
    ldconfig: Path `/usr/lib/x86_64-linux-gnu' given more than once
    ldconfig: /lib/x86_64-linux-gnu/ld-2.28.so is the dynamic linker, ignoring
    
    	libssl.so.1.1 -> libssl.so.1.1
    

    (correct) and here is nushell/nu:

    root@31308c1e8884:/# ldconfig --verbose | grep ssl      
    /sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
    /sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
    /sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.23.so is the dynamic linker, ignoring
    
    	libssl.so.1.0.0 -> libssl.so.1.0.0
    root@31308c1e8884:/# 
    

    Does the actual build of nu somewhere specify to install a different version? I modified the recipe down to be exactly the same (for the apt-get installs and base image):

    ARG FROMTAG=latest
    FROM quay.io/nushell/nu-base:${FROMTAG} as base
    FROM ubuntu:16.04
    COPY --from=base /usr/local/bin/nu /usr/local/bin/nu
    ENV DEBIAN_FRONTEND noninteractive
    RUN apt-get update && apt-get install -y libssl-dev \
        libxcb-composite0-dev \
        pkg-config \
        curl
    ENTRYPOINT ["nu"]
    CMD ["-l", "info"]
    

    And it still seems to install a different version of libssl, so I'm thinking that cargo is somehow involved. Is it a fix to try installing the exact version of libssl that we need?

  7. vsoch commented on Sep 12, 2019

    @vsoch
    Contributor

    It seems to work if we change the base to 18.04, any issue with that? Why is 16.04 used for azure pipelines?

  8. jeka commented on Sep 12, 2019

    @jeka
    Author

    I guess it will work for a while if you change it to 18.04. But the root cause for the problem is that the base images for nu-base and nu are different. Soon or later there will be another similar breakage.
    Why don't use rust-n.n.n and rust-n.n.n-slim respectively?

  9. vsoch commented on Sep 12, 2019

    @vsoch
    Contributor

    @jeka what do you think of #655?

  10. vsoch commented on Sep 12, 2019

    @vsoch
    Contributor

    I started using those images, but I wanted to reproduce what is done for the azure pipelines, since that's where testing happens. I had thought that using 16.04 and 16.04 would also work, but it doesn't seem to. Is there not a reason for the choice of 16.04?

  11. jeka commented on Sep 12, 2019

    @jeka
    Author

    I can not answer this question as I am not part of this team. Sorry.
    I just reported some bugs.

  12. jankoprowski commented on Sep 13, 2019

    @jankoprowski
    Contributor

    @vsoch There is an issue in Azure Pipelines described in this ticket:
    #587

    That is why we do not build on 18.04 in Azure Pipelines

  13. jeka commented on Sep 13, 2019

    @jeka
    Author

    I am sorry but I am confused. What is the connection between Image pool in Azure Pipelines and base image for generated Docker images?

  14. jankoprowski commented on Sep 13, 2019

    @jankoprowski
    Contributor

    @jeka As far as I see you do not define Dockerfiles for Azure, just configure image you want to use in https://github.com/nushell/nushell/blob/master/.azure/azure-pipelines.yml

  15. jeka commented on Sep 13, 2019

    @jeka
    Author

    @jankoprowski, I am still confused. This issue is not about Azure DevOps services. It's about the base image for generated Docker images.

  16. vsoch commented on Sep 13, 2019

    @vsoch
    Contributor

    @jeka there is no connection - I had tried to use the same base (16.04) but judging on the link shared (thank you @jankoprowski !) the choice simply seems to be because the better alterntive (18.04) isn't available. It's weird that the azure team maintains some set of special (modified) based images, but that's neither here nor there! I'm not completely happy with having nu-base and nu with two different bases, so I'm going to put in a PR to update both to 18.04, especially since reading the above.

  17. vsoch commented on Sep 13, 2019

    @vsoch
    Contributor

    This issue is also fixed, there is no more libssl error. Thanks for reporting it @jeka and starting up conversation to make both bases better! Closing issue, PR coming in soon for the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions