You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ranger.apache.org by "Treadwell, Helene" <He...@nike.com> on 2019/04/16 22:45:50 UTC
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
Re: Re: Build Ranger Using Docker
Posted by "Treadwell, Helene" <He...@nike.com>.
1. Yes! I’ve created RANGER-2410<https://issues.apache.org/jira/browse/RANGER-2410> in JIRA.
Thanks,
Helene
From: Don Bosco Durai <bo...@apache.org>
Reply-To: "user@ranger.apache.org" <us...@ranger.apache.org>
Date: Tuesday, April 23, 2019 at 7:02 PM
To: "user@ranger.apache.org" <us...@ranger.apache.org>, "user@ranger.apache.org" <us...@ranger.apache.org>
Subject: Re: <External>Re: Build Ranger Using Docker
In the meanwhile, can you create a JIRA for this issue?
Thanks
Bosco
________________________________
From: Treadwell, Helene <he...@nike.com>
Sent: Tuesday, April 23, 2019 5:43 PM
To: user@ranger.apache.org
Subject: Re: Re: Build Ranger Using Docker
Hi Don,
Thanks for the new script. Unfortunately, URLs are getting obfuscated when they come to me via e-mail. Would it possible to send a fresh copy to helenen@gmail.com<ma...@gmail.com> or put it on Github somewhere?
FYI, errors when I’m trying to use the new script with obfuscated URLs
---> 5aeeae36e0d6
Step 8/22 : RUN wget https://urldefense.proofpoint.com/v2/url?u=https-3A__s3.eu-2Dcentral-2D1.amazonaws.com_docker-2Dassets_dist_jdk-2D8u101-2Dlinux-2Dx64.rpm&d=DwIGAg&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=DB6uW7rdC_gejH6nH6Vc63oCSLYBiDUqL8C8WZbdosQ&e=
---> Using cache
---> 5c2127f4b55a
Step 9/22 : RUN rpm -i jdk-8u101-linux-x64.rpm
---> Running in 9d512b7f566d
error: open of jdk-8u101-linux-x64.rpm failed: No such file or directory
Thanks,
Helene
From: Don Bosco Durai <bo...@apache.org>
Reply-To: "user@ranger.apache.org" <us...@ranger.apache.org>
Date: Saturday, April 20, 2019 at 11:17 PM
To: "user@ranger.apache.org" <us...@ranger.apache.org>
Subject: Re: <External>Re: Build Ranger Using Docker
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: <us...@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" <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tianon_gosu_releases_download_1.10_gosu-2Damd64-2522&d=DwQFaQ&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=RYGGYQHlDvfGkdqLPgG44BcFNK5vslmXllryWfj6LIA&e=> && curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc" <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tianon_gosu_releases_download_1.10_gosu-2Damd64.asc-2522&d=DwQFaQ&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=uZbaTTs55_-ksH4_AXsLglep92TP23tQ4gnu8luy8DE&e=> && 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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, April 17, 2019 at 3:11 PM
To: "user@ranger.apache.org" <us...@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" <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 11:57 PM
To: "user@ranger.apache.org" <us...@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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <us...@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
Re: Re: Build Ranger Using Docker
Posted by Don Bosco Durai <bo...@apache.org>.
In the meanwhile, can you create a JIRA for this issue?
Thanks
Bosco
________________________________
From: Treadwell, Helene <he...@nike.com>
Sent: Tuesday, April 23, 2019 5:43 PM
To: user@ranger.apache.org
Subject: Re: Re: Build Ranger Using Docker
Hi Don,
Thanks for the new script. Unfortunately, URLs are getting obfuscated when they come to me via e-mail. Would it possible to send a fresh copy to helenen@gmail.com<ma...@gmail.com> or put it on Github somewhere?
FYI, errors when I’m trying to use the new script with obfuscated URLs
---> 5aeeae36e0d6
Step 8/22 : RUN wget https://urldefense.proofpoint.com/v2/url?u=https-3A__s3.eu-2Dcentral-2D1.amazonaws.com_docker-2Dassets_dist_jdk-2D8u101-2Dlinux-2Dx64.rpm&d=DwIGAg&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=DB6uW7rdC_gejH6nH6Vc63oCSLYBiDUqL8C8WZbdosQ&e=
---> Using cache
---> 5c2127f4b55a
Step 9/22 : RUN rpm -i jdk-8u101-linux-x64.rpm
---> Running in 9d512b7f566d
error: open of jdk-8u101-linux-x64.rpm failed: No such file or directory
Thanks,
Helene
From: Don Bosco Durai <bo...@apache.org>
Reply-To: "user@ranger.apache.org" <us...@ranger.apache.org>
Date: Saturday, April 20, 2019 at 11:17 PM
To: "user@ranger.apache.org" <us...@ranger.apache.org>
Subject: Re: <External>Re: Build Ranger Using Docker
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: <us...@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" <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tianon_gosu_releases_download_1.10_gosu-2Damd64-2522&d=DwQFaQ&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=RYGGYQHlDvfGkdqLPgG44BcFNK5vslmXllryWfj6LIA&e=> && curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc" <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tianon_gosu_releases_download_1.10_gosu-2Damd64.asc-2522&d=DwQFaQ&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=uZbaTTs55_-ksH4_AXsLglep92TP23tQ4gnu8luy8DE&e=> && 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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, April 17, 2019 at 3:11 PM
To: "user@ranger.apache.org" <us...@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" <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 11:57 PM
To: "user@ranger.apache.org" <us...@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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <us...@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
Re: Re: Build Ranger Using Docker
Posted by "Treadwell, Helene" <He...@nike.com>.
Hi Don,
Thanks for the new script. Unfortunately, URLs are getting obfuscated when they come to me via e-mail. Would it possible to send a fresh copy to helenen@gmail.com<ma...@gmail.com> or put it on Github somewhere?
FYI, errors when I’m trying to use the new script with obfuscated URLs
---> 5aeeae36e0d6
Step 8/22 : RUN wget https://urldefense.proofpoint.com/v2/url?u=https-3A__s3.eu-2Dcentral-2D1.amazonaws.com_docker-2Dassets_dist_jdk-2D8u101-2Dlinux-2Dx64.rpm&d=DwIGAg&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=DB6uW7rdC_gejH6nH6Vc63oCSLYBiDUqL8C8WZbdosQ&e=
---> Using cache
---> 5c2127f4b55a
Step 9/22 : RUN rpm -i jdk-8u101-linux-x64.rpm
---> Running in 9d512b7f566d
error: open of jdk-8u101-linux-x64.rpm failed: No such file or directory
Thanks,
Helene
From: Don Bosco Durai <bo...@apache.org>
Reply-To: "user@ranger.apache.org" <us...@ranger.apache.org>
Date: Saturday, April 20, 2019 at 11:17 PM
To: "user@ranger.apache.org" <us...@ranger.apache.org>
Subject: Re: <External>Re: Build Ranger Using Docker
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: <us...@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" <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tianon_gosu_releases_download_1.10_gosu-2Damd64-2522&d=DwQFaQ&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=RYGGYQHlDvfGkdqLPgG44BcFNK5vslmXllryWfj6LIA&e=> && curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc" <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tianon_gosu_releases_download_1.10_gosu-2Damd64.asc-2522&d=DwQFaQ&c=7DfhQjPWzR3PmWBQVpi-kw&r=kcVpZ83Oz_eaC5ai7r0u5Lr9tm-XLxYP8p3M7dVqMRE&m=bcXk0KhABoVxKnrS1FIsgI8BKa-U4FvSrHJnzA4SFDg&s=uZbaTTs55_-ksH4_AXsLglep92TP23tQ4gnu8luy8DE&e=> && 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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, April 17, 2019 at 3:11 PM
To: "user@ranger.apache.org" <us...@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" <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 11:57 PM
To: "user@ranger.apache.org" <us...@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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <us...@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
Re: Re: Build Ranger Using Docker
Posted by Don Bosco Durai <bo...@apache.org>.
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: <us...@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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, April 17, 2019 at 3:11 PM
To: "user@ranger.apache.org" <us...@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" <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 11:57 PM
To: "user@ranger.apache.org" <us...@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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <us...@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
Re: Re: Build Ranger Using Docker
Posted by Don Bosco Durai <bo...@apache.org>.
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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Wednesday, April 17, 2019 at 3:11 PM
To: "user@ranger.apache.org" <us...@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" <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 11:57 PM
To: "user@ranger.apache.org" <us...@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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <us...@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
Re: Re: Build Ranger Using Docker
Posted by "Treadwell, Helene" <He...@nike.com>.
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" <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 11:57 PM
To: "user@ranger.apache.org" <us...@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" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <us...@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
Re: Build Ranger Using Docker
Posted by Don Bosco Durai <bo...@apache.org>.
Helene
What is the error you are getting when you run:
./build_ranger_user_docker.sh
Thanks
Bosco
From: "Treadwell, Helene" <He...@nike.com>
Reply-To: <us...@ranger.apache.org>
Date: Tuesday, April 16, 2019 at 4:15 PM
To: "user@ranger.apache.org" <us...@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