From 4787d921f7dd7f2a8350339c44d3fa9db99da1ba Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 7 Aug 2021 11:48:43 +0200 Subject: [PATCH] adding script for starting everything in local --- .dockerignore | 2 ++ src/start.bat | 6 ++++++ src/start.sh | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 .dockerignore create mode 100644 src/start.bat create mode 100644 src/start.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..07e3af0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +src/Lavalink +start.* diff --git a/src/start.bat b/src/start.bat new file mode 100644 index 0000000..32eb9ce --- /dev/null +++ b/src/start.bat @@ -0,0 +1,6 @@ +@echo off +echo "Starting Lavalink server and waiting 20s..." +RUN "java -jar Lavalink/Lavalink.jar 1>/dev/null &" # showing only stderror +timeout /t 30 +echo "Done." +RUN "python -u ./main.py" diff --git a/src/start.sh b/src/start.sh new file mode 100644 index 0000000..304ee6f --- /dev/null +++ b/src/start.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +echo "Starting Lavalink server and waiting 20s..." +java -jar Lavalink/Lavalink.jar 1>/dev/null & # showing only stderror +sleep 20 +echo "Done." +python3 -u ./main.py