thelastpickle / docker-cassandra-bootstrap

The repo for the following Meetup: https://www.meetup.com/Austin-Cassandra-Users/events/243752170.
100 stars 51 forks source link

cannot build with docker compose #3

Open juniormayhe opened 5 years ago

juniormayhe commented 5 years ago

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:

$ docker-compose --version
docker-compose version 1.23.2, build 1110ad01
ihorchepurnyi commented 5 years ago

I have the same issue.

rexad commented 5 years ago

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

duycuong87vn commented 3 years ago

Same issue, any solutions ?