Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is is possible to run without Docker? #276

Open
youngmit opened this issue Apr 5, 2019 · 2 comments
Open

Is is possible to run without Docker? #276

youngmit opened this issue Apr 5, 2019 · 2 comments

Comments

@youngmit
Copy link

youngmit commented Apr 5, 2019

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!

@dennwc dennwc added the question label Apr 6, 2019
@dennwc
Copy link
Member

dennwc commented Apr 6, 2019

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.

@bzz
Copy link
Contributor

bzz commented Apr 8, 2019

@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

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants