This plugin looks awesome, but unfortunately, due to tech stack at my job, I'm forced to use Windows for development, so I have to run ollama in Docker container.
I've decided to add Docker container support for users as one of default supported ways to use plugin. To achive that i allowed users to specify container option. It accepts name of docker container as string and if provided changes few plugin behaviours:
plugin will use docker start instead of ollama serve to ensure that ollama service is available
plugin will use docker exec $container ollama run $model $prompt as default execution command
During process i was struggling with command returning error output to stderr, that i couldn't see, so I also implemented additional boolean option debugCommand that if set to true, will print stderr of command to output window. I've decided to left it as part of this PR, as it may be usefull for future development and users having problems with not working custom command.
This plugin looks awesome, but unfortunately, due to tech stack at my job, I'm forced to use Windows for development, so I have to run ollama in Docker container.
I've decided to add Docker container support for users as one of default supported ways to use plugin. To achive that i allowed users to specify
container
option. It accepts name of docker container as string and if provided changes few plugin behaviours:docker start
instead ofollama serve
to ensure that ollama service is availabledocker exec $container ollama run $model $prompt
as default execution commandDuring process i was struggling with command returning error output to stderr, that i couldn't see, so I also implemented additional boolean option debugCommand that if set to true, will print stderr of command to output window. I've decided to left it as part of this PR, as it may be usefull for future development and users having problems with not working custom command.
Best regards Oskar