You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by sa...@apache.org on 2018/03/11 06:48:23 UTC

ode git commit: fixed gpg signing from the docker container

Repository: ode
Updated Branches:
  refs/heads/ode-1.3.x 982062220 -> b142adeaf


fixed gpg signing from the docker container


Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/b142adea
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/b142adea
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/b142adea

Branch: refs/heads/ode-1.3.x
Commit: b142adeaf63e443929e6550a5a6a34966b4093dd
Parents: 9820622
Author: sathwik <sa...@apache.org>
Authored: Sun Mar 11 12:17:58 2018 +0530
Committer: sathwik <sa...@apache.org>
Committed: Sun Mar 11 12:17:58 2018 +0530

----------------------------------------------------------------------
 ode-release.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/b142adea/ode-release.sh
----------------------------------------------------------------------
diff --git a/ode-release.sh b/ode-release.sh
index 38c5134..c730e43 100755
--- a/ode-release.sh
+++ b/ode-release.sh
@@ -31,10 +31,15 @@ CREATE_USER_COMMAND="groupadd -f -g $GROUP_ID $CONTAINER_GROUPNAME \
 && chown -R $CONTAINER_USERNAME:$CONTAINER_GROUPNAME $HOMEDIR"
 
 BUNDLER_COMMAND="jruby -S bundler install --gemfile=/workspace/Gemfile"
- 
+
+# The gpg agent daemon should be started explicitly in the docker container.
+# "pinentry-mode loopback" option should be added in gpg.conf in the host machine
+# for non interactive execution.
+GNUPG_COMMAND="su $CONTAINER_USERNAME -c 'gpg-agent --daemon'"
+
 BUILDR_COMMAND="su $CONTAINER_USERNAME -c 'buildr $BUILDR_ARGS'"
 
-FINAL_COMMAND="$CREATE_USER_COMMAND && $BUNDLER_COMMAND && $BUILDR_COMMAND"
+FINAL_COMMAND="$CREATE_USER_COMMAND && $BUNDLER_COMMAND && $GNUPG_COMMAND && $BUILDR_COMMAND"
 
 
 ## For release set these arguments with proper values