This setup provides a complete Docker environment for running Ollama with the qwen2.5:7b model for Continue Beans.
# Ubuntu/Debian
sudo apt update && sudo apt install docker.io docker-compose
# Or visit: https://docs.docker.com/get-docker/cd /home/bajinho/GitHub/continue-netbeans
chmod +x docker/setup-ollama.sh
./docker/setup-ollama.shcd docker
docker-compose up -d ollama
docker exec -it continue-beans-ollama ollama pull qwen2.5:7b- Port: 11434
- Volume:
ollama_data(persistent model storage) - Model: qwen2.5:7b (7B parameters, optimized for function calling)
# Pull models automatically
docker-compose --profile pull-models up model-pullerOLLAMA_HOST=0.0.0.0- Accept connections from any host
ollama_data:/root/.ollama- Persistent model storage
continue-beans-network- Isolated Docker network
docker-compose up -d ollamadocker-compose ps
curl http://127.0.0.1:11434/api/tagsdocker exec -it continue-beans-ollama ollama run qwen2.5:7b "Hello, how are you?"docker exec -it continue-beans-ollama ollama listdocker-compose downdocker-compose restartdocker-compose logs -f ollamadocker exec -it continue-beans-ollama ollama pull qwen2.5:7b# Check what's using port 11434
sudo netstat -tulpn | grep 11434
# Change port in docker-compose.yml
ports:
- "11435:11434"# Add user to docker group
sudo usermod -aG docker $USER
# Logout and login again# Pull model manually
docker exec -it continue-beans-ollama ollama pull qwen2.5:7b# Check Docker memory limits
docker system df
docker system pruneMake sure OllamaChatPanel.java is configured for:
- URL:
http://127.0.0.1:11434 - Model:
qwen2.5:7b
# Build and install NetBeans plugin
mvn clean install nbm:cluster
# Install target/nbm/continue-beans-1.0-SNAPSHOT.nbm in NetBeans- Open NetBeans
- Window → Continue Beans Chat (Ollama)
- Test:
crie hello world em python
- Parameters: 7B
- Size: ~4.7GB
- Specialization: Function calling, code generation
- Language: Multilingual (strong in English/Chinese)
- Performance: Excellent for development tasks
# Other models you can try:
docker exec -it continue-beans-ollama ollama pull llama3.1:8b
docker exec -it continue-beans-ollama ollama pull mistral-nemo:latest
docker exec -it continue-beans-ollama ollama pull codellama:7b✅ Isolated Environment - No system dependencies ✅ Persistent Storage - Models survive container restarts ✅ Easy Management - Simple start/stop commands ✅ Portability - Works on any Docker-enabled system ✅ Resource Control - Limit memory/CPU usage if needed ✅ Version Control - Easy to rollback/upgrade models