Commit 5a0c370d authored by Johannes Kiesel's avatar Johannes Kiesel

add util mturk-manager-frontend

parent 6d0ec658
......@@ -27,10 +27,11 @@ betamng Low level scripts for managing Betaweb.
betaweb High level scripts for betaweb, e.g. hadoop management.
htop Print the clipboard to standard output
htop Show system load of all betaweb nodes using clusterssh and htop
restart_hadoop_ressourcemanager Restart hadoop ressource manager on betaweb020 and restarts nodemanager
rolling_restart Restart betaweb nodes one after another
rolling_state Apply Salt state on nodes one after another
ssh SSH into all betaweb nodes using clusterssh
status Get status of betaweb via salt
core Core functions of the Webis command.
......@@ -75,6 +76,7 @@ util General helper tools and utilities
backup-btrfs-vol Take a snapshot of a btrfs subvolume and back up its contents to another location
list-buw-dns List all assigned Webis host names / IP addresses at BUW
login Get user name for a university login
mturk-manager-frontend Start the MTurk manager frontend on your machine
parallel-idrac Execute idrac command in parallel across multiple hosts
patch-jar Add files from one jar to another
read-from-clipboard Print the clipboard to standard output
# Start the MTurk manager frontend on your machine
# Copyright 2019-today
# Project WEBIS
# Author: Johannes Kiesel
. "$scriptPath"/../../libs/
. "$scriptPath"/../../libs/shflags
check_tools "docker"
# Define usage screen.
usage() {
echo "usage:
$(basename "$0")
start the MTurk Manager frontend on your machine
# Define command line arguments and parse them.
DEFINE_integer "port" "$default_port" "Local port at which to access the frontend." "p"
DEFINE_string "tag" "$default_tag" "Tag of $image to use" "t"
FLAGS "$@" || exit 1 # Parse command line arguments.
eval set -- "${FLAGS_ARGV}"
# Main
main() {
logInfo "Starting the MTurk Manager frontend ($image:$FLAGS_tag) at port $FLAGS_port"
logInfo "Log in at http://localhost:8080"
logInfo "URL:"
logInfo "Token: <ask in Discord>"
if groups | grep &>/dev/null '\bdocker\b'; then
docker run -p $FLAGS_port:$internal_port $image:$FLAGS_tag
sudo docker run -p $FLAGS_port:$internal_port $image:$FLAGS_tag
# Start programm with parameters.
main "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment