diff options
author | ms <ms@taler.net> | 2022-05-11 10:09:44 +0200 |
---|---|---|
committer | ms <ms@taler.net> | 2022-05-11 10:09:44 +0200 |
commit | 105177923aaeb75b2f9a570424392b4344862b78 (patch) | |
tree | fc8b7a3b20c5f1856d94ae33c681401f0b68f8f3 | |
parent | fb3c9aa79ab3622d9c7369eade6c9d6e72fa390f (diff) | |
download | deployment-105177923aaeb75b2f9a570424392b4344862b78.tar.gz deployment-105177923aaeb75b2f9a570424392b4344862b78.tar.bz2 deployment-105177923aaeb75b2f9a570424392b4344862b78.zip |
typescript sandbox
disable login and log custom service to console
-rw-r--r-- | typescript/container/Dockerfile | 8 | ||||
-rw-r--r-- | typescript/container/prepare.service | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/typescript/container/Dockerfile b/typescript/container/Dockerfile index f231e2b..acea926 100644 --- a/typescript/container/Dockerfile +++ b/typescript/container/Dockerfile @@ -19,9 +19,17 @@ COPY taler-local . RUN python3 /taler-local bootstrap --without-repos wallet-core RUN python3 /taler-local build +# To debug. Will be removed. RUN echo "root:taler" | chpasswd +# No need to manually login. +RUN systemctl mask console-getty +# RUN systemctl mask systemd-logind + COPY prepare.service /etc/systemd/system RUN chmod 664 /etc/systemd/system/prepare.service + +# prepare.sh creates the database and finally +# calls the configuration interpreter / generator: taler-config.js. COPY prepare.sh . COPY export_path.sh /root/.bashrc RUN chmod +x prepare.sh diff --git a/typescript/container/prepare.service b/typescript/container/prepare.service index dac9bab..b35d3da 100644 --- a/typescript/container/prepare.service +++ b/typescript/container/prepare.service @@ -3,6 +3,7 @@ Description=PrepareDatabase [Service] ExecStart=/prepare.sh +StandardOutput=journal+console [Install] WantedBy=multi-user.target |