summaryrefslogtreecommitdiff
path: root/typescript
diff options
context:
space:
mode:
authorms <ms@taler.net>2022-05-12 08:45:24 +0200
committerms <ms@taler.net>2022-05-12 08:45:24 +0200
commitebd8d5b1fd55c7bfa359f80b58e56cdda3644723 (patch)
treeda129e75186378a17c8af6c388686965194ae7ae /typescript
parent105177923aaeb75b2f9a570424392b4344862b78 (diff)
downloaddeployment-ebd8d5b1fd55c7bfa359f80b58e56cdda3644723.tar.gz
deployment-ebd8d5b1fd55c7bfa359f80b58e56cdda3644723.tar.bz2
deployment-ebd8d5b1fd55c7bfa359f80b58e56cdda3644723.zip
read file from host
Diffstat (limited to 'typescript')
-rw-r--r--typescript/README7
-rwxr-xr-xtypescript/container/taler-config.js8
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.")