IntersectMBO / cardano-addresses

Addresses and mnemonic manipulation & derivations
Apache License 2.0
145 stars 46 forks source link

Can't build Dockerfile on Ubuntu 22.10, WSL, Windows 11 #224

Open ggcaponetto opened 1 year ago

ggcaponetto commented 1 year ago

Steps to reproduce on Ubuntu 22.10, WSL (22.10), and Windows 11

  1. Clone repo and checkout tag 3.12.0
  2. sudo docker build -t cardano-address .

Output:

[+] Building 1.6s (10/26)                                                                                                                                                                                                       
 => [internal] load .dockerignore                                                                                                                                                                                          0.0s
 => => transferring context: 368B                                                                                                                                                                                          0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                                       0.0s
 => => transferring dockerfile: 1.59kB                                                                                                                                                                                     0.0s
 => [internal] load metadata for docker.io/frolvlad/alpine-glibc:alpine-3.11_glibc-2.30                                                                                                                                    0.5s
 => [internal] load metadata for docker.io/library/haskell:8.6.5                                                                                                                                                           0.5s
 => [stage-1 1/7] FROM docker.io/frolvlad/alpine-glibc:alpine-3.11_glibc-2.30@sha256:b6165080982253b82ad8e0a782ba2b56309909de48f617fbff1aa2867408c787                                                                      0.0s
 => [internal] load build context                                                                                                                                                                                          0.1s
 => => transferring context: 15.61kB                                                                                                                                                                                       0.0s
 => [build  1/14] FROM docker.io/library/haskell:8.6.5@sha256:6ae86033bfa75027fc36a63bb69e7fa41d4e7df6ae4a78baeb77dafc94488d81                                                                                             0.0s
 => CACHED [stage-1 2/7] RUN apk add --no-cache gmp=6.1.2-r1 bash=5.0.11-r1 bash-completion=2.9-r0 libstdc++=9.3.0-r0                                                                                                      0.0s
 => CACHED [build  2/14] WORKDIR /build                                                                                                                                                                                    0.0s
 => ERROR [build  3/14] RUN apt-get update && apt-get install --no-install-recommends -y   build-essential=12.3   git=1:2.11.*                                                                                             1.0s
------                                                                                                                                                                                                                          
 > [build  3/14] RUN apt-get update && apt-get install --no-install-recommends -y   build-essential=12.3   git=1:2.11.*:                                                                                                        
#0 0.326 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease                                                                                                                                             
#0 0.328 Get:2 http://downloads.haskell.org/debian stretch InRelease [2517 B]                                                                                                                                                   
#0 0.340 Ign:3 http://deb.debian.org/debian stretch InRelease
#0 0.348 Ign:4 http://security.debian.org/debian-security stretch/updates Release
#0 0.350 Ign:5 http://deb.debian.org/debian stretch-updates InRelease
#0 0.368 Ign:6 http://deb.debian.org/debian stretch Release
#0 0.368 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 0.386 Ign:8 http://deb.debian.org/debian stretch-updates Release
#0 0.404 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
#0 0.404 Ign:10 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 0.422 Ign:11 http://deb.debian.org/debian stretch/main all Packages
#0 0.422 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 0.440 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 0.440 Ign:10 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 0.458 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages
#0 0.460 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 0.476 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
#0 0.478 Ign:10 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 0.494 Ign:11 http://deb.debian.org/debian stretch/main all Packages
#0 0.498 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 0.512 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 0.516 Ign:10 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 0.530 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages
#0 0.534 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 0.546 Get:14 http://downloads.haskell.org/debian stretch/main amd64 Packages [33.5 kB]
#0 0.548 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
#0 0.565 Ign:10 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 0.566 Ign:11 http://deb.debian.org/debian stretch/main all Packages
#0 0.585 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 0.585 Err:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
#0 0.585   404  Not Found
#0 0.602 Ign:10 http://security.debian.org/debian-security stretch/updates/main all Packages
#0 0.604 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages
#0 0.623 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
#0 0.641 Ign:11 http://deb.debian.org/debian stretch/main all Packages
#0 0.661 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 0.679 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages
#0 0.697 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
#0 0.731 Ign:11 http://deb.debian.org/debian stretch/main all Packages
#0 0.751 Ign:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 0.769 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages
#0 0.789 Err:9 http://deb.debian.org/debian stretch/main amd64 Packages
#0 0.789   404  Not Found
#0 0.841 Ign:11 http://deb.debian.org/debian stretch/main all Packages
#0 0.858 Err:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages
#0 0.858   404  Not Found
#0 0.876 Ign:13 http://deb.debian.org/debian stretch-updates/main all Packages
#0 0.882 Fetched 36.1 kB in 0s (60.6 kB/s)
#0 0.882 Reading package lists...
#0 0.899 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
#0 0.899 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
#0 0.899 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
#0 0.899 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages  404  Not Found
#0 0.899 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  404  Not Found
#0 0.899 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages  404  Not Found
#0 0.899 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
Dockerfile:7
--------------------
   6 |     WORKDIR /build
   7 | >>> RUN apt-get update && apt-get install --no-install-recommends -y \
   8 | >>>   build-essential=12.3 \
   9 | >>>   git=1:2.11.*
  10 |     RUN stack upgrade --binary-version 2.1.3
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install --no-install-recommends -y   build-essential=12.3   git=1:2.11.*" did not complete successfully: exit code: 100