fsprojects / FSharp.Formatting

F# tools for generating documentation (Markdown processor and F# code formatter)
https://fsprojects.github.io/FSharp.Formatting/
Other
462 stars 155 forks source link

Dockerfile fails to build with "failed to solve: process /bin/bash ..." #827

Closed reinux closed 10 months ago

reinux commented 1 year ago

The full docker build output:

[+] Building 4.1s (9/18)
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 2.77kB                                                                             0.0s
 => [internal] load metadata for docker.io/jupyter/base-notebook:latest                                            0.5s
 => [ 1/14] FROM docker.io/jupyter/base-notebook@sha256:d4ee370eefd967657564486f496a77ecfcf48248bea76db18e882113f  0.0s
 => [internal] load build context                                                                                  0.1s
 => => transferring context: 44.43kB                                                                               0.1s
 => CACHED [ 2/14] WORKDIR /home/fsdocs-user                                                                       0.0s
 => CACHED [ 3/14] RUN apt-get update                                                                              0.0s
 => CACHED [ 4/14] RUN apt-get install -y curl                                                                     0.0s
 => ERROR [ 5/14] RUN apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recomm  3.6s
------
 > [ 5/14] RUN apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         libc6         libgcc1         libgssapi-krb5-2         libicu66         libssl1.1         libstdc++6         zlib1g     && rm -rf /var/lib/apt/lists/*:
#0 0.753 Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#0 0.816 Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#0 0.824 Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#0 1.109 Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
#0 1.313 Fetched 337 kB in 1s (435 kB/s)
#0 1.313 Reading package lists...
#0 2.291 Reading package lists...
#0 3.163 Building dependency tree...
#0 3.461 Reading state information...
#0 3.579 E: Unable to locate package libicu66
#0 3.579 E: Unable to locate package libssl1.1
#0 3.579 E: Couldn't find any package by glob 'libssl1.1'
#0 3.579 E: Couldn't find any package by regex 'libssl1.1'
------
Dockerfile:28
--------------------
  27 |     # Install .NET CLI dependencies
  28 | >>> RUN apt-get update \
  29 | >>>     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  30 | >>>         libc6 \
  31 | >>>         libgcc1 \
  32 | >>>         libgssapi-krb5-2 \
  33 | >>>         libicu66 \
  34 | >>>         libssl1.1 \
  35 | >>>         libstdc++6 \
  36 | >>>         zlib1g \
  37 | >>>     && rm -rf /var/lib/apt/lists/*
  38 |
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         libc6         libgcc1         libgssapi-krb5-2         libicu66         libssl1.1         libstdc++6         zlib1g     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

I tried older jupyter/base-notebook images (5cfa60996e84, for example, which is from just prior to the Dockerfile commit) and got a different error:

 => ERROR [10/14] RUN pip install nteract_on_jupyter                                                               0.0s
------
 > [10/14] RUN pip install nteract_on_jupyter:
------
Dockerfile:67
--------------------
  65 |
  66 |     #Install nteract
  67 | >>> RUN pip install nteract_on_jupyter
  68 |
  69 |     # Install lastest build from master branch of Microsoft.DotNet.Interactive
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c pip install nteract_on_jupyter" did not complete successfully: unable to find user fsdocs-user: no matching entries in passwd file
kMutagene commented 11 months ago

For reference, I have manually created a new docker file for Plotly.NET that is also a bit less complicated, based on the .net sdk image and installs jupyter (so basically vice-versa compared to the current Dockerfile). It works fine with binder.

https://github.com/plotly/Plotly.NET/blob/dev/docs/Dockerfile

If there is interest I can file a PR @nhirschey, but maybe @reinux could you try first if that works out for you?

nhirschey commented 11 months ago

A PR would be great @kMutagene. The binder docker has been broken for over a year.

Edit: “broken” meaning hasn’t worked with newer dotnet versions.