Created
May 28, 2020 02:49
-
-
Save joepreludian/8496f20401e421881ed6bf3435b227cd to your computer and use it in GitHub Desktop.
OCR Development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
which podman 2> /dev/null | |
if [ $? -eq 0 ]; then | |
CONTAINER_APP="podman"; | |
else | |
CONTAINER_APP="docker"; | |
fi | |
echo "Running tool =)"; | |
$CONTAINER_APP run --rm -u $(id -u):$(id -u) -it -v `pwd`/captures:/app/captures -v `pwd`/releases:/app/releases -v `pwd`/output:/app/output joepreludian/photo_ocr_helper; | |
echo "Command executed. Hit enter to finish"; | |
read CMD; | |
exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment