diff --git a/README.md b/README.md index f3ae4a7..e65b9bf 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ docker run --init --rm --publish 3000:3000/tcp org-investigation ``` This launches a server listening on port 3000, so pop open your browser to http://127.0.0.1:3000/ to access the web interface. + +(alternatively, you can run the `scripts/launch_docker.bash` script which performs these two steps.) ### No docker You will need a fully functional rust setup with nightly installed (due to the use of exit_status_error). Then from the root of this repo you can launch the server by running: diff --git a/scripts/launch_docker.bash b/scripts/launch_docker.bash new file mode 100755 index 0000000..69ca8e3 --- /dev/null +++ b/scripts/launch_docker.bash @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# +set -euo pipefail +IFS=$'\n\t' +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +function main { + make --directory "$DIR/../docker" + exec docker run --init --rm --publish 3000:3000/tcp org-investigation +} + +main "${@}"