Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error trying to build Docker image #194

Open
astangl opened this issue Sep 4, 2020 · 3 comments
Open

Getting error trying to build Docker image #194

astangl opened this issue Sep 4, 2020 · 3 comments

Comments

@astangl
Copy link

astangl commented Sep 4, 2020

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
Copy link
Contributor

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

@astangl
Copy link
Author

astangl commented Sep 4, 2020

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
Copy link
Contributor

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

Here's the fix: #216
@noelwelsh could you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants