You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2018/08/24 09:56:29 UTC

[incubator-openwhisk] branch master updated: Allow a full TypesafeConfig file to be passed via environment. (#3984)

This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e9b245  Allow a full TypesafeConfig file to be passed via environment. (#3984)
4e9b245 is described below

commit 4e9b2457538986be26b7a53c5db925a9e50f6f2f
Author: Chetan Mehrotra <ch...@apache.org>
AuthorDate: Fri Aug 24 15:26:26 2018 +0530

    Allow a full TypesafeConfig file to be passed via environment. (#3984)
---
 common/scala/transformEnvironment.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/common/scala/transformEnvironment.sh b/common/scala/transformEnvironment.sh
index bb8ceed..657df56 100755
--- a/common/scala/transformEnvironment.sh
+++ b/common/scala/transformEnvironment.sh
@@ -34,6 +34,13 @@ configVariables=$(compgen -v | grep $prefix)
 
 props=()
 
+if [ -n "$OPENWHISK_CONFIG" ]
+then
+    location="/config.conf"
+    printf "%s" "$OPENWHISK_CONFIG" > "$location"
+    props+=("-Dconfig.file='$location'")
+fi
+
 for var in $configVariables
 do
     value=$(printenv "$var")