Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Work with docker and IDE

To share installation, we decided to work with docker. For each project, global dependencies are installed inside the container.

We are developping with Python (and Java, but at this time, let's speak about Python only ;) )

Working with Vim (for example), I want to use code completion, but because the entire libs are installed in container, my vim installation on host cannot access them. This is true with Java, Javascript, and so on and it's absolutly normal...

But is there any solution to be able to work with container, getting access to libs for IDE, without to install IDE in the container itself ?

like image 772
Metal3d Avatar asked Oct 19 '22 18:10

Metal3d


1 Answers

But is there any solution to be able to work with container, getting access to libs for IDE, without to install IDE in the container itself ?

The trick is to run your IDE from the container. Your IDE is installed on your host, you just run it in the container.

For this to work, you need an IDE container that has:

  • all the system requirements your IDE needs
  • can display GUI applications
  • has a volume mounted on the location of your IDE on your host

An example of all this with a well known Python IDE instead of vim is discussed here:

Warning: this has been validated on Ubuntu 14.04 only.

PyCharm Docker Integration

like image 126
howaryoo Avatar answered Oct 24 '22 05:10

howaryoo