Helene

 

Can you create a JIRA for this issue?

 

I have attached the updated shell script for you to try it out. If it works, I 
can put it out for others to review.

 

One time to rebuild your image and output:

./build_ranger_using_docker.sh -build_image mvn clean

 

Subsequently:

#For full build

./build_ranger_using_docker.sh 

 

#For selective build

./build_ranger_using_docker.sh  mvn <your params here>

 

Thanks

 

Bosco

 

 

From: Don Bosco Durai <bo...@apache.org>
Date: Wednesday, April 17, 2019 at 6:58 PM
To: <user@ranger.apache.org>
Subject: Re: <External>Re: Build Ranger Using Docker

 

I think, you are having issues connecting to get the keys, so your image is not 
properly built. The tool gosu is used so that the mvn is run as the same user 
as yourself, so the files are not created with the same file owner as the 
caller. I think, in a single user laptop, this might not add much value. Let me 
see if I can update the script to avoid using gosu.

 

gpg: directory `/root/.gnupg' created

gpg: new configuration file `/root/.gnupg/gpg.conf' created

gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this 
run

gpg: keyring `/root/.gnupg/secring.gpg' created

gpg: keyring `/root/.gnupg/pubring.gpg' created

gpg: requesting key BF357DD4 from hkp server pool.sks-keyservers.net

gpgkeys: HTTP fetch error 7: Failed to connect to ::ffff:ffff:c62e:cb61: Cannot 
assign requested address

gpg: no valid OpenPGP data found.

gpg: Total number processed: 0

The command '/bin/sh -c gpg --keyserver pool.sks-keyservers.net --recv-keys 
B42F6819007F00F88E364FD4036A9C25BF357DD4     && curl -o /usr/local/bin/gosu -SL 
"https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64";     && curl 
-o /usr/local/bin/gosu.asc -SL 
"https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc";     && 
gpg --verify /usr/local/bin/gosu.asc     && rm /usr/local/bin/gosu.asc     && 
rm -r /root/.gnupg/     && chmod +x /usr/local/bin/gosu' returned a non-zero 
code: 2

 

 

Bosco

 

From: "Treadwell, Helene" <helene.treadw...@nike.com>
Reply-To: <user@ranger.apache.org>
Date: Wednesday, April 17, 2019 at 3:11 PM
To: "user@ranger.apache.org" <user@ranger.apache.org>
Subject: Re: <External>Re: Build Ranger Using Docker

 

Hi Don,

 

The error message in my previous e-mail is exactly what I get at the end of 
running that script.  I’ve attached the full log of my terminal, starting with 
the git clone.

 

Thanks,

Helene Treadwell

 

From: Don Bosco Durai <bo...@apache.org>
Reply-To: "user@ranger.apache.org" <user@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 11:57 PM
To: "user@ranger.apache.org" <user@ranger.apache.org>
Subject: <External>Re: Build Ranger Using Docker

 

Helene

 

What is the error you are getting when you run:

 

./build_ranger_user_docker.sh

 

Thanks

 

Bosco

 

 

 

From: "Treadwell, Helene" <helene.treadw...@nike.com>
Reply-To: <user@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <user@ranger.apache.org>
Subject: Build Ranger Using Docker

 

Hello,

 

I’m on a Mac and trying to run the script ./build_ranger_user_docker.sh to 
create a Ranger image.  The first time I ran it, it seemed to go through fine 
and create the ranger_dev image.  However, I seemed to have trouble running it. 
 I wasn’t sure what was wrong with it and decided to clean up the image (docker 
rmi) and try to run the script again.  However, now I’m consistently getting 
the below error.

 

+ docker run --rm -v /Users/hngu30/git/apache/ranger:/ranger -w /ranger -v 
/Users/hngu30/.m2:/.m2 --name ranger_build ranger_dev mvn -Pall 
-DskipTests=true clean compile package install assembly:assembly

Unable to find image 'ranger_dev:latest' locally

docker: Error response from daemon: pull access denied for ranger_dev, 
repository does not exist or may require 'docker login'.

See 'docker run --help'.

 

Any advice is much appreciated!

 

Thanks,

Helene

Attachment: build_ranger_using_docker.sh
Description: Binary data

Reply via email to