Closed koraxus closed 6 years ago
Inside the container, /home/nbgallery/.abuild
is owned by root but the default user is nbgallery, so you can't use the default output location for the keyfiles.
I recommend using the debug
option on the build script:
$ sudo ./build 3.7 debug
...
bash-4.4$ abuild-keygen
>>> Generating public/private rsa key pair for abuild
Enter file in which to save the key [/home/nbgallery/.abuild/team@nb.gallery-5a694c61.rsa]: /home/nbgallery/apks/asdf.rsa
Generating RSA private key, 2048 bit long modulus
...
bash-4.4$ exit
$ ls asdf*
asdf.rsa asdf.rsa.pub
Alternately, instead of the build script:
sudo docker run --rm -it --name keys -v `pwd`:/home/nbgallery/apks --entrypoint bash nbgallery/apkbuilder:3.7
docker run --name keys --entrypoint abuild-keygen -e PACKAGER="nbgallery nbgallery@team.com" nbgallery/apkbuilder:3.7 -n /home/nbgallery/.abuild/nbgallery@team.com-5a5fdd8c.rsa: Permission denied 140710630865868:error:02FFF00D:system library:func(4095):Permission denied:bio/bss_file.c:255:fopen('/home/nbgallery/.abuild/nbgallery@team.com-5a5fdd8c.rsa', 'w') 140710630865868:error:20FFF002:BIO routines:CRYPTO_internal:system lib:bio/bss_file.c:257: Error opening Private Key /home/nbgallery/.abuild/nbgallery@team.com-5a5fdd8c.rsa 139724712766412:error:02FFF002:system library:func(4095):No such file or directory:bio/bss_file.c:255:fopen('/home/nbgallery/.abuild/nbgallery@team.com-5a5fdd8c.rsa', 'r') 139724712766412:error:20FFF002:BIO routines:CRYPTO_internal:system lib:bio/bss_file.c:257: unable to load Private Key