From 227469129126f69412d3768e13db7c60e284b3e8 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Wed, 9 Oct 2024 15:34:44 +0200 Subject: [PATCH] deployment changes --- deployment_scripts/linux/prepare_all.sh | 30 +++++++++++++++++++ .../{prepare-free.sh => prepare_free.sh} | 0 ...{prepare-nonfree.sh => prepare_nonfree.sh} | 0 deployment_scripts/linux/root.sh | 2 +- deployment_scripts/linux/run.sh | 1 + deployment_scripts/windows/prepare_all.bat | 4 +++ 6 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 deployment_scripts/linux/prepare_all.sh rename deployment_scripts/linux/{prepare-free.sh => prepare_free.sh} (100%) rename deployment_scripts/linux/{prepare-nonfree.sh => prepare_nonfree.sh} (100%) create mode 100644 deployment_scripts/windows/prepare_all.bat diff --git a/deployment_scripts/linux/prepare_all.sh b/deployment_scripts/linux/prepare_all.sh new file mode 100644 index 0000000..03dd10c --- /dev/null +++ b/deployment_scripts/linux/prepare_all.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +chmod +x root.sh +pkexec ./root.sh +npm install +npm run build + +cd py +python3 -m venv venv +source venv/bin/activate +python3 -m pip install -r requirements.txt + +ollama pull qwen2-math:1.5b +ollama pull qwen2.5-coder:1.5b +ollama pull phi3.5 + +ollama pull mathstral +ollama pull qwen2.5-coder +ollama pull qwen2.5 + +ollama pull qwen2-math:1.5b +ollama pull starcoder2 +ollama pull llama3.2 + +ollama pull wizard-math +ollama pull starcoder2:7b +ollama pull llama3.1 + +cd .. +chmod +x run.sh \ No newline at end of file diff --git a/deployment_scripts/linux/prepare-free.sh b/deployment_scripts/linux/prepare_free.sh similarity index 100% rename from deployment_scripts/linux/prepare-free.sh rename to deployment_scripts/linux/prepare_free.sh diff --git a/deployment_scripts/linux/prepare-nonfree.sh b/deployment_scripts/linux/prepare_nonfree.sh similarity index 100% rename from deployment_scripts/linux/prepare-nonfree.sh rename to deployment_scripts/linux/prepare_nonfree.sh diff --git a/deployment_scripts/linux/root.sh b/deployment_scripts/linux/root.sh index 7fc9b13..312679d 100644 --- a/deployment_scripts/linux/root.sh +++ b/deployment_scripts/linux/root.sh @@ -1,6 +1,6 @@ #!/bin/bash -apt install npm nodejs python3-full ffmpeg libgtk-3-0t64 libnotify4 libnss3 libxss1 libasound2 build-essential cmake -y +apt install npm nodejs python3-full ffmpeg libgtk-3-0t64 libnotify4 libnss3 libxss1 libasound2t64 build-essential cmake -y if ! ollama; then curl -fsSL https://ollama.com/install.sh | sh fi diff --git a/deployment_scripts/linux/run.sh b/deployment_scripts/linux/run.sh index 1220bae..a4ad3f9 100644 --- a/deployment_scripts/linux/run.sh +++ b/deployment_scripts/linux/run.sh @@ -9,6 +9,7 @@ cd .. npm start & pid_node=$! +sleep 2 npx electron . kill $pid_py diff --git a/deployment_scripts/windows/prepare_all.bat b/deployment_scripts/windows/prepare_all.bat new file mode 100644 index 0000000..e610454 --- /dev/null +++ b/deployment_scripts/windows/prepare_all.bat @@ -0,0 +1,4 @@ +start /b scripts\prepare_py.bat +start /b scripts\prepare_npm.bat +start /b scripts\prepare_ollama_free.bat +start /b scripts\prepare_ollama_nonfree.bat \ No newline at end of file