Building nodejs in Docker

If you need to add keys to the keychain in a Travis build and you have problems with IPV6 (which Travis cannot handle), use the IPV4 keyservers as follows:

RUN set -ex \
  && for key in \
  94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
  #…. more keys...
  ; do \
  gpg --keyserver hkp://ha.pool.sks-keyservers.net --recv-keys "$key" || \
  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

© 2021