Web Dev Solutions

Catalin Mititiuc

From 163e3a9de59f5d6a8df38fa32a1e7dc4db1ad024 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sat, 1 Jun 2024 17:50:58 -0700 Subject: Fix/refactor tests --- scripts/docker-run | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/docker-run (limited to 'scripts') diff --git a/scripts/docker-run b/scripts/docker-run new file mode 100755 index 0000000..a11ce87 --- /dev/null +++ b/scripts/docker-run @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +user_id=$(id -u) +image=btroops + +if [[ $2 == run && $3 == test* ]] +then + port=3005 +else + port=8080 +fi + +docker run --rm --init -it -v $PWD:/usr/src/app -u $user_id:$user_id -p $port:$port $image $@ -- cgit v1.2.3