Add a script to build and launch the docker container in one step.
This commit is contained in:
parent
b4170dda1f
commit
e8f262727d
@ -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.
|
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
|
### 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:
|
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:
|
||||||
|
|
||||||
|
12
scripts/launch_docker.bash
Executable file
12
scripts/launch_docker.bash
Executable file
@ -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 "${@}"
|
Loading…
x
Reference in New Issue
Block a user