scalawithcats / scala-with-cats

Source code for Scala with Cats
http://underscore.io/books/scala-with-cats
390 stars 129 forks source link

Getting error trying to build Docker image #194

Open astangl opened 3 years ago

astangl commented 3 years ago

I'm trying to run the ./go.sh command on Ubuntu 18.04. It fails with:

Step 4/10 : RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -   && VERSION=node_12.x   && DISTRO="$(lsb_release -s -c)"   && echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list   && echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list   && apt-get update -y   && apt-get install -y nodejs
 ---> Running in 1d07a0ef5647
OK
deb https://deb.nodesource.com/node_12.x groovy main
deb-src https://deb.nodesource.com/node_12.x groovy main
Get:1 http://archive.ubuntu.com/ubuntu groovy InRelease [267 kB]
Hit:2 http://security.ubuntu.com/ubuntu groovy-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu groovy-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu groovy/main amd64 Packages [1283 kB]
Ign:6 https://deb.nodesource.com/node_12.x groovy InRelease
Err:7 https://deb.nodesource.com/node_12.x groovy Release
  404  Not Found [IP: 184.51.114.169 443]
Reading package lists...
E: The repository 'https://deb.nodesource.com/node_12.x groovy Release' does not have a Release file.
ERROR: Service 'book' failed to build: The command '/bin/sh -c curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -   && VERSION=node_12.x   && DISTRO="$(lsb_release -s -c)"   && echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list   && echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list   && apt-get update -y   && apt-get install -y nodejs' returned a non-zero code: 100

Apparently it's failing because deb.nodesource.com/node_12.x doesn't have a Release for groovy version. I thought that pinning to 1.0 version of thomasweise/docker-pandoc might fix the problem, but it failed with the same error.

noelwelsh commented 3 years ago

Thanks for letting me know. I don't have time to look into this at the moment, unfortunately.

astangl commented 3 years ago

OK, thanks for the update. I'll try building the book the non-Docker route instead.

As a suggestion, would be nice to publish pre-built Docker image to some repo rather than forcing people to build their own (and potentially running into issues). This way the advantage of using Docker images would really shine, and fewer chances of people getting tripped up when they try to get started here.

EugeneYushin commented 2 years ago

Thanks for letting me know. I don't have time to look into this at the moment, unfortunately.

Here's the fix: https://github.com/scalawithcats/scala-with-cats/pull/216 @noelwelsh could you please take a look?