dsci-runner.git | .dsci/ | task.bash
set -e
#curl -fsSL https://ollama.com/install.sh | sh
#MODEL="qwen2.5:1.5b"
#MODEL="llama3.2:3b"
#MODEL="qwen2.5-coder:3b"
MODEL="qwen2.5-coder:7b-instruct-q4_K_M"
#df -h
#ollama pull "$MODEL"
#ollama run "$MODEL" "Say 'Deployment successful!'"
#uptime
#exit
if [ "$EUID" -eq 0 ]; then
echo "Error: Do not run this script as root." >&2
exit 1
fi
cd ../
#echo "build dsci-runner from go source code"
#go mod tidy
#go build
#echo "done!"
#cp -fv dsci_runner ~/projects/dsci-runner/
#echo "will restart dsci-runner in 15 sec ..."
#nohup bash -c "sleep 15 && sudo service dsci-runner restart" 1>/dev/null 2>/dev/null &
#rm -rf ~/projects/rakupp-git
#git clone https://github.com/ash/rakupp.git ~/projects/rakupp-git
cd ~/projects/rakupp-git && git checkout main && git pull && git log | head
# Needs a C++17 compiler + CMake → produces build/rakupp
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --install build --prefix ~/projects/dsci-runner/.dist/
ls -l ~/projects/dsci-runner/.dist
cd ~/projects/dsci-runner
ls -l
cat Dockerfile.agent.rakupp
cp .dist/bin/rakupp .dist/
podman build --file Dockerfile.agent.rakupp . -t melezhik/dsci-agent-rakupp
podman push melezhik/dsci-agent-rakupp