Files
Podman/ai-tools/Docker/scripts/run.sh

22 lines
444 B
Bash
Executable File

#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
set -e
function main() {
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
cd "${SCRIPTPATH}"
echo "Working Dir: " $(pwd)
trap "kill 0" SIGTERM SIGINT
# ollama launch opencode --model llama3.1
ollama serve
}
main $@;