Add a script to build and launch the docker container in one step.

This commit is contained in:
Tom Alexander
2023-08-31 15:17:14 -04:00
parent b4170dda1f
commit e8f262727d
2 changed files with 14 additions and 0 deletions

12
scripts/launch_docker.bash Executable file
View 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 "${@}"