docker-cassandra-bootstrap icon indicating copy to clipboard operation
docker-cassandra-bootstrap copied to clipboard

cannot build with docker compose

Open juniormayhe opened this issue 6 years ago • 3 comments

Can someone follow readme instructions? Docker compose is not building here.

$ docker-compose build

cqlsh uses an image, skipping
nodetool uses an image, skipping
cassandra-reaper uses an image, skipping
prometheus uses an image, skipping
grafana uses an image, skipping
Building cassandra
Step 1/10 : FROM cassandra:3.11
 ---> 8ea89760ce2b
Step 2/10 : RUN set -x     && echo "deb http://pkg.ci.collectd.org/deb jessie collectd-5.7"         > /etc/apt/sources.list.d/pkg.ci.collectd.org.list     && gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 3994D24FB8543576         && gpg --export -a 3994D24FB8543576 | apt-key add -     && apt-get update         && apt-get install -y --no-install-recommends             collectd=5.7.1-1.1             collectd-utils             libprotobuf-c-dev             libmicrohttpd-dev     && echo "deb http://deb.debian.org/debian jessie main"         >> /etc/apt/sources.list.d/pkg.ci.collectd.org.list     && apt-get update         && apt-get install -y             librrd4             libmicrohttpd10         && rm -rf /var/lib/apt/lists/*
 ---> Running in c086ad3e9a85
+ echo deb http://pkg.ci.collectd.org/deb jessie collectd-5.7
+ gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 3994D24FB8543576
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: keyserver receive failed: No data
Service 'cassandra' failed to build: The command '/bin/sh -c set -x     && echo "deb http://pkg.ci.collectd.org/deb jessie collectd-5.7"         > /etc/apt/sources.list.d/pkg.ci.collectd.org.list     && gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 3994D24FB8543576         && gpg --export -a 3994D24FB8543576 | apt-key add -     && apt-get update         && apt-get install -y --no-install-recommends             collectd=5.7.1-1.1             collectd-utils             libprotobuf-c-dev             libmicrohttpd-dev     && echo "deb http://deb.debian.org/debian jessie main"         >> /etc/apt/sources.list.d/pkg.ci.collectd.org.list     && apt-get update         && apt-get install -y             librrd4             libmicrohttpd10         && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 2

Environment:

  • OS: Windows 10
  • Docker for Windows 2.0.0.0-win81 (29211) Channel: Stable Build 4271b9e
  • Git Bash 2.19.0.1
$ docker-compose --version
docker-compose version 1.23.2, build 1110ad01

juniormayhe avatar Dec 24 '18 10:12 juniormayhe

I have the same issue.

ihorchepurnyi avatar Jan 31 '19 08:01 ihorchepurnyi

fixed it, will create a PR replace && gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 3994D24FB8543576 \ with

&& gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --no-tty --recv-keys 3994D24FB8543576 \

there are multiple issues related to the gpg server ipv4, this should fix it

rexad avatar Feb 27 '19 13:02 rexad

Same issue, any solutions ?

duycuong87vn avatar Mar 17 '21 18:03 duycuong87vn