taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 324bd50bddbe1d03617d4ccac81de4afdca69ecc
parent d9a71bbea41403c59fc2f07690aa5f0dc524a78d
Author: ms <ms@taler.net>
Date:   Tue,  3 May 2022 09:29:20 +0200

typescript sandbox, first commit

Diffstat:
Atypescript/container/Dockerfile | 17+++++++++++++++++
Atypescript/container/export_path.sh | 3+++
Atypescript/container/prepare-db.service | 8++++++++
Atypescript/container/prepare-db.sh | 5+++++
4 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/typescript/container/Dockerfile b/typescript/container/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:testing +RUN apt-get update +RUN apt-get install -y autoconf autopoint libtool texinfo \ + libgcrypt-dev libidn11-dev zlib1g-dev libunistring-dev \ + libjansson-dev python3-pip git recutils libsqlite3-dev \ + libpq-dev postgresql libcurl4-openssl-dev libsodium-dev git \ + libqrencode-dev zip jq nodejs npm openjdk-17-jre nginx procps \ + curl +RUN pip3 install qrcode click requests jinja2 poetry babel +RUN echo "root:taler" | chpasswd +COPY prepare-db.service /etc/systemd/system +RUN chmod 664 /etc/systemd/system/prepare-db.service +COPY prepare-db.sh . +COPY export_path.sh /root/.bashrc +RUN chmod +x prepare-db.sh +RUN systemctl enable prepare-db +CMD ["/sbin/init"] diff --git a/typescript/container/export_path.sh b/typescript/container/export_path.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +export PATH=$PATH:$HOME/.local/bin diff --git a/typescript/container/prepare-db.service b/typescript/container/prepare-db.service @@ -0,0 +1,8 @@ +[Unit] +Description=PrepareDatabase + +[Service] +ExecStart=/prepare-db.sh + +[Install] +WantedBy=multi-user.target diff --git a/typescript/container/prepare-db.sh b/typescript/container/prepare-db.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -e + +su -c "createuser --superuser root && createdb taler" postgres