gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: read file from host


From: gnunet
Subject: [taler-deployment] branch master updated: read file from host
Date: Thu, 12 May 2022 08:45:32 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new ebd8d5b  read file from host
ebd8d5b is described below

commit ebd8d5b1fd55c7bfa359f80b58e56cdda3644723
Author: ms <ms@taler.net>
AuthorDate: Thu May 12 08:45:24 2022 +0200

    read file from host
---
 typescript/README                    | 7 +++++--
 typescript/container/taler-config.js | 8 ++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/typescript/README b/typescript/README
index c683c7c..f0a9445 100644
--- a/typescript/README
+++ b/typescript/README
@@ -4,6 +4,9 @@ Building and running the image.
 $ podman build -t $tag .
 
 After the build, run:
-$ podman run -it $tag
+$ podman run [-it] [-v /host/path/to/config-file:/config.ts] $tag
 
-If no errors occur, login as 'root' (p: 'taler').
+The "[-it]" part makes it interactive, although it won't
+be possible to kill the container only with CTRL-C.  If "-v"
+is given, the contained application will read 'config-file'
+and configure/launch Taler according to it.
diff --git a/typescript/container/taler-config.js 
b/typescript/container/taler-config.js
index 44cda4d..4d01bf8 100755
--- a/typescript/container/taler-config.js
+++ b/typescript/container/taler-config.js
@@ -1,10 +1,10 @@
 #!/usr/bin/nodejs
 
-/*try {
+var fs = require("fs")
+
+try {
   const data = fs.readFileSync("/config.ts", "utf-8");
+  console.log(data);
 } catch (error) {
   console.log(error);
 }
-console.log(data)*/
-
-console.log("I'm startled.")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]