From f592294335396215b2fa72edf9967fe3db4f3c42 Mon Sep 17 00:00:00 2001 From: brybalicious Date: Wed, 7 Oct 2020 21:20:43 +0200 Subject: [PATCH] Added scripts to conveniently start server instance via docker or replication --- scripts/start_server/run-dockerfile.sh | 9 +++++++++ scripts/start_server/start-server.sh | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/start_server/run-dockerfile.sh create mode 100644 scripts/start_server/start-server.sh diff --git a/scripts/start_server/run-dockerfile.sh b/scripts/start_server/run-dockerfile.sh new file mode 100644 index 0000000..6880530 --- /dev/null +++ b/scripts/start_server/run-dockerfile.sh @@ -0,0 +1,9 @@ +#! /bin/bash + +# Start server in docker container, from image hosted on the multi-user gitlab's container registry +docker run -d \ + -p 5555-5560:5555-5560 \ + -e port=5555 \ + -e password=admin \ + -e timeout=1000 \ + registry.gitlab.com/slumber/multi-user/multi-user-server:0.1.0 \ No newline at end of file diff --git a/scripts/start_server/start-server.sh b/scripts/start_server/start-server.sh new file mode 100644 index 0000000..09b8db6 --- /dev/null +++ b/scripts/start_server/start-server.sh @@ -0,0 +1,5 @@ +#! /bin/bash + +# Start replication server locally, and include logging (requires replication_version=0.0.21a15) +clear +replication.serve -p 5555 -pwd admin -t 1000 -l INFO -lf server.log \ No newline at end of file