Merge commit '1392bd3a96045302b60d845a90901a4b2234c475' as 'seatmap-webapi'

This commit is contained in:
zino
2021-01-20 12:59:59 +01:00
261 changed files with 39680 additions and 0 deletions

21
seatmap-webapi/docker/run.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
FILES=*
i=0
options=()
for f in $FILES; do
if [[ -d "$f" ]]; then
((i++))
options[$i]=$f
fi
done
PS3="> "
select f in "${options[@]}"; do
if (( REPLY > 0 && REPLY <= ${#options[@]} )); then
break
else
exit
fi
done
dir=$(readlink -f ..)
docker rm "php-crud-api_$f" > /dev/null 2>&1
docker run -ti -v $dir:/php-crud-api --name "php-crud-api_$f" "php-crud-api:$f" /bin/bash -c '/usr/sbin/docker-run && cd php-crud-api && /bin/bash'