bblfshd icon indicating copy to clipboard operation
bblfshd copied to clipboard

Is is possible to run without Docker?

Open youngmit opened this issue 6 years ago • 2 comments

Docker seems like a wildly over-engineered approach to managing installation of drivers, and is not available on some platforms and many configurations and contexts (e.g. WSL on a windows box with no admin privs). Ive gotten the standalone daemon to run just fine, but can't for the life of me figure out how to get the python driver installed without docker. And for that matter can't think of a reason why Docker is really necessary in this case.

Any help getting bblfsh with python installed without Docker would be greatly appreciated. Thanks!

youngmit avatar Apr 05 '19 23:04 youngmit

Babelfish does not require Docker to run, but it requires namespaces and cgroups provided by Linux kernel. We use libcontainer under the hood to isolate language drivers and it might not work under WSL properly.

We cannot provide direct support for your use case, however, you may try to follow guides for installing Docker under WSL. Docker also uses libcontainer, thus most WSL dependencies that are required for it to work should also allow Babelfish to run. Most likely you will find few WSL modules missing on your system.

Hope this helps.

dennwc avatar Apr 06 '19 00:04 dennwc

@youngmit as @dennwc noted, the main reason for running drivers inside the container (though libcontainer) is to isolate environment for the native driver, incapsulating all dependencies, parser versions, etc.

Although please, help me understand - if you have a Daemon running alright and want to install a python driver - what is the current output of

bblfshctl driver install python bblfsh/python-driver:latest

?

bzz avatar Apr 08 '19 09:04 bzz