From ed96d70bbfd83852fb7bebb623542c019d715e07 Mon Sep 17 00:00:00 2001 From: Vosjedev Date: Sat, 24 Jan 2026 12:19:57 +0100 Subject: administrative stuff add a gitignore, add an env.sh for autostarting and configuring a database, add ws4py as dep (gateway needs it) Signed-off-by: Vosjedev --- env.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 env.sh (limited to 'env.sh') diff --git a/env.sh b/env.sh new file mode 100644 index 0000000..4a3d0bc --- /dev/null +++ b/env.sh @@ -0,0 +1,24 @@ + +export MYSQL_HOST=127.0.0.1 +export MYSQL_ROOT_PASSWORD=supersecurepassword +export MYSQL_PASSWORD=securepassword +export MYSQL_DATABASE=discord_image_bridge +export MYSQL_USER=bridge + +[[ -f "bottoken.txt" ]] && read -r BOT_TOKEN <"bottoken.txt" + +export BOT_TOKEN + +echo "Setup database..." +mkdir -p /tmp/database +podman run --rm -d \ + --name tmp_database \ + --hostname db \ + --env 'MYSQL_*' \ + -v /tmp/database:/var/lib/mysql \ + -p 3306:3306 \ + yobasystems/alpine-mariadb + +podman ps +echo "Done" + -- cgit