gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: typescript sandbox, first comm


From: gnunet
Subject: [taler-deployment] branch master updated: typescript sandbox, first commit
Date: Tue, 03 May 2022 09:29:29 +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 324bd50  typescript sandbox, first commit
324bd50 is described below

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

    typescript sandbox, first commit
---
 typescript/container/Dockerfile         | 17 +++++++++++++++++
 typescript/container/export_path.sh     |  3 +++
 typescript/container/prepare-db.service |  8 ++++++++
 typescript/container/prepare-db.sh      |  5 +++++
 4 files changed, 33 insertions(+)

diff --git a/typescript/container/Dockerfile b/typescript/container/Dockerfile
new file mode 100644
index 0000000..49696ff
--- /dev/null
+++ 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
new file mode 100644
index 0000000..6f41874
--- /dev/null
+++ 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
new file mode 100644
index 0000000..bfece5f
--- /dev/null
+++ 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
new file mode 100644
index 0000000..85d9482
--- /dev/null
+++ b/typescript/container/prepare-db.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+
+su -c "createuser --superuser root && createdb taler" postgres

-- 
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]