Re: GPG signing non interative mode

2018-03-12 Thread Sathwik B P
Here is the docker container launcher code
https://github.com/apache/ode/blob/ode-1.3.x/ode-release.sh

On Tue, Mar 13, 2018 at 11:54 AM, Sathwik B P  wrote:

> Thanks Antonie,
>
> Yes, that's what we did.
>
> For ref:
> [ https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase,
>  https://bbs.archlinux.org/viewtopic.php?pid=1479136
> https://www.gnupg.org/documentation/manuals/gnupg/
> GPG-Esoteric-Options.html#GPG-Esoteric-Options]
>
> It was a tough nut to crack with the intension of having the build and
> release done from buildr witin a docker container.
>
>
>
> On Mon, Mar 12, 2018 at 11:44 PM, Antoine Toulme 
> wrote:
>
>> Just browsing through here: https://www.gnupg.org/document
>> ation/manuals/gnupg/GPG-Configuration.html > tation/manuals/gnupg/GPG-Configuration.html>
>>
>> Squinting hard at the doc, it looks like you’d like to be able to write
>> gpg.conf under ~/.gnupg with your options.
>>
>>
>> > On Mar 12, 2018, at 11:10 AM, Antoine Toulme 
>> wrote:
>> >
>> > No, the current code doesn’t seem to allow passing additional options
>> when issuing the command line arguments.
>> >
>> > There might be a way to use environment variables? What additional
>> parameters do you need?
>> >
>> >> On Mar 11, 2018, at 12:25 AM, Sathwik B P  wrote:
>> >>
>> >> Hi,
>> >>
>> >> GPG signing artifacts will not work in non interative mode with GPG
>> 2.1. It
>> >> still asks for the passphrase even when the passphrase is provided
>> with the
>> >> gpg --passphrase command.
>> >>
>> >> One option to make this work non interactively is to add
>> "pinentry-mode"
>> >> loopback in the gpg.conf.
>> >> There are other recommendations in gpg forum.
>> >>
>> >> Is there a way to pass additional options to the gpg?
>> >> [https://github.com/apache/buildr/blob/master/addon/buildr/gpg.rb]
>> >>
>> >> regards,
>> >> sathwik
>> >
>>
>>
>


Re: GPG signing non interative mode

2018-03-12 Thread Sathwik B P
Thanks Antonie,

Yes, that's what we did.

For ref:
[ https://wiki.archlinux.org/index.php/GnuPG#Unattended_passphrase,
 https://bbs.archlinux.org/viewtopic.php?pid=1479136
https://www.gnupg.org/documentation/manuals/gnupg/GPG-Esoteric-Options.html#GPG-Esoteric-Options
]

It was a tough nut to crack with the intension of having the build and
release done from buildr witin a docker container.



On Mon, Mar 12, 2018 at 11:44 PM, Antoine Toulme 
wrote:

> Just browsing through here: https://www.gnupg.org/
> documentation/manuals/gnupg/GPG-Configuration.html  documentation/manuals/gnupg/GPG-Configuration.html>
>
> Squinting hard at the doc, it looks like you’d like to be able to write
> gpg.conf under ~/.gnupg with your options.
>
>
> > On Mar 12, 2018, at 11:10 AM, Antoine Toulme 
> wrote:
> >
> > No, the current code doesn’t seem to allow passing additional options
> when issuing the command line arguments.
> >
> > There might be a way to use environment variables? What additional
> parameters do you need?
> >
> >> On Mar 11, 2018, at 12:25 AM, Sathwik B P  wrote:
> >>
> >> Hi,
> >>
> >> GPG signing artifacts will not work in non interative mode with GPG
> 2.1. It
> >> still asks for the passphrase even when the passphrase is provided with
> the
> >> gpg --passphrase command.
> >>
> >> One option to make this work non interactively is to add "pinentry-mode"
> >> loopback in the gpg.conf.
> >> There are other recommendations in gpg forum.
> >>
> >> Is there a way to pass additional options to the gpg?
> >> [https://github.com/apache/buildr/blob/master/addon/buildr/gpg.rb]
> >>
> >> regards,
> >> sathwik
> >
>
>


Re: GPG signing non interative mode

2018-03-12 Thread Antoine Toulme
Just browsing through here: 
https://www.gnupg.org/documentation/manuals/gnupg/GPG-Configuration.html 


Squinting hard at the doc, it looks like you’d like to be able to write 
gpg.conf under ~/.gnupg with your options.


> On Mar 12, 2018, at 11:10 AM, Antoine Toulme  wrote:
> 
> No, the current code doesn’t seem to allow passing additional options when 
> issuing the command line arguments.
> 
> There might be a way to use environment variables? What additional parameters 
> do you need?
> 
>> On Mar 11, 2018, at 12:25 AM, Sathwik B P  wrote:
>> 
>> Hi,
>> 
>> GPG signing artifacts will not work in non interative mode with GPG 2.1. It
>> still asks for the passphrase even when the passphrase is provided with the
>> gpg --passphrase command.
>> 
>> One option to make this work non interactively is to add "pinentry-mode"
>> loopback in the gpg.conf.
>> There are other recommendations in gpg forum.
>> 
>> Is there a way to pass additional options to the gpg?
>> [https://github.com/apache/buildr/blob/master/addon/buildr/gpg.rb]
>> 
>> regards,
>> sathwik
> 



Re: GPG signing non interative mode

2018-03-12 Thread Antoine Toulme
No, the current code doesn’t seem to allow passing additional options when 
issuing the command line arguments.

There might be a way to use environment variables? What additional parameters 
do you need?

> On Mar 11, 2018, at 12:25 AM, Sathwik B P  wrote:
> 
> Hi,
> 
> GPG signing artifacts will not work in non interative mode with GPG 2.1. It
> still asks for the passphrase even when the passphrase is provided with the
> gpg --passphrase command.
> 
> One option to make this work non interactively is to add "pinentry-mode"
> loopback in the gpg.conf.
> There are other recommendations in gpg forum.
> 
> Is there a way to pass additional options to the gpg?
> [https://github.com/apache/buildr/blob/master/addon/buildr/gpg.rb]
> 
> regards,
> sathwik



GPG signing non interative mode

2018-03-11 Thread Sathwik B P
Hi,

GPG signing artifacts will not work in non interative mode with GPG 2.1. It
still asks for the passphrase even when the passphrase is provided with the
gpg --passphrase command.

One option to make this work non interactively is to add "pinentry-mode"
loopback in the gpg.conf.
There are other recommendations in gpg forum.

Is there a way to pass additional options to the gpg?
[https://github.com/apache/buildr/blob/master/addon/buildr/gpg.rb]

regards,
sathwik