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

GPG issue when building docker image #4

Open
usamah82 opened this issue Feb 6, 2019 · 0 comments
Open

GPG issue when building docker image #4

usamah82 opened this issue Feb 6, 2019 · 0 comments
Assignees

Comments

@usamah82
Copy link
Contributor

usamah82 commented Feb 6, 2019

When attempting to build the image locally by running

docker build -t blacktangent/circleci-ruby:2.6.1-stretch-pgclient10.5-node10.15.1-browsers circleci-ruby/2.6.1-stretch-pgclient10.5-node10.15.1-browsers/

I encountered the following error:

Step 8/25 : RUN set -ex   && for key in   94AE36675C464D64BAFA68DD7434390BDBE9B9C5   FD3A5288F042B6850C66B31F09FE44734EB7990E   71DCFD284A79C3B38668286BC97EC7A07EDE3FC1   DD8F2338BAE7501E3DD5AC78C273792F7D83545D   C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8   B9AE9905FFD7803F25714661B63B535A4C206CA9   56730D5401028683275BD23C23EFEFE93C4CFFFE   77984A986EBC2AA786BC0F66B01FBB92821C587A   8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600   ; do   gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ||   gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" ||   gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ;   done
 ---> Running in 07960824dca8
+ gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 94AE36675C464D64BAFA68DD7434390BDBE9B9C5
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: cannot open '/dev/tty': No such device or address
+ gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 94AE36675C464D64BAFA68DD7434390BDBE9B9C5
gpg: cannot open '/dev/tty': No such device or address
+ gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 94AE36675C464D64BAFA68DD7434390BDBE9B9C5
gpg: keyserver receive failed: No data
The command '/bin/sh -c set -ex   && for key in   94AE36675C464D64BAFA68DD7434390BDBE9B9C5   FD3A5288F042B6850C66B31F09FE44734EB7990E   71DCFD284A79C3B38668286BC97EC7A07EDE3FC1   DD8F2338BAE7501E3DD5AC78C273792F7D83545D   C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8   B9AE9905FFD7803F25714661B63B535A4C206CA9   56730D5401028683275BD23C23EFEFE93C4CFFFE   77984A986EBC2AA786BC0F66B01FBB92821C587A   8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600   ; do   gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ||   gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys "$key" ||   gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys "$key" ;   done' returned a non-zero code: 2

Some fails on

gpg: cannot open '/dev/tty': No such device or address

Some fails on

gpg: keyserver receive failed: No data

Tried the fix by adding --no-tty or --batch option but it didn't work for me. Perhaps someone could also try the same (I may not have the proper local setup?) / or suggest another workaround?

nodejs/docker-node#922

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