hectcastro / docker-riak

A Docker project to bring up a local Riak cluster.
https://registry.hub.docker.com/u/hectcastro/riak/
Apache License 2.0
167 stars 83 forks source link

'make build' broken due to ppa:webupd8team/java #31

Closed talmage closed 10 years ago

talmage commented 10 years ago

I'm setting up a freshly cloned docker-riak. 'make build' fails because apt-add-repository can't find the webupd8team/java PPA. Can I omit installing Java 7? Here is the output from 'make build':

dtalmage@reasonable:~/repos/docker-riak$ sudo make build
docker build -t "hectcastro/riak" .                                                                                 
Sending build context to Docker daemon 159.2 kB                                                                     
Sending build context to Docker daemon                                                                              
Step 0 : FROM phusion/baseimage:0.9.14                                                                              
 ---> e74fe19c755c                                                                                                  
Step 1 : MAINTAINER Hector Castro hectcastro@gmail.com                                                              
 ---> Using cache                                                                                                   
 ---> 4b9708d2ae1f                                                                                                  
Step 2 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> 827d1658c4b4
Step 3 : ENV RIAK_VERSION 2.0.1-1
 ---> Using cache
 ---> 3002456bc7e0
Step 4 : RUN sed -i.bak 's/main$/main universe/' /etc/apt/sources.list
 ---> Using cache
 ---> 3f672725b8ea
Step 5 : RUN apt-get update -qq && apt-get install -y software-properties-common &&     apt-add-repository ppa:webupd8team/java -y && apt-get update -qq &&     echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections &&     apt-get install -y oracle-java7-installer
 ---> Running in b143ee4dc4a8
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease  

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease  

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease  

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'archive.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
software-properties-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cannot add PPA: 'ppa:webupd8team/java'.
Please check that the PPA name or format is correct.
2014/10/29 10:36:20 The command [/bin/sh -c apt-get update -qq && apt-get install -y software-properties-common &&     apt-add-repository ppa:webupd8team/java -y && apt-get update -qq &&     echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections &&     apt-get install -y oracle-java7-installer] returned a non-zero code: 1
Makefile:6: recipe for target 'build' failed
make: *** [build] Error 1
dtalmage@reasonable:~/repos/docker-riak$ 
talmage commented 10 years ago

There is no problem with docker-riak. The problem was on my end. My company network blocks the public DNS I told docker to use.