Skip to Content
Menu
This question has been flagged

Hello guys, could anyone help me with to properly configure bundle of Docker + Odoo + VSCode or Pycharm! I`m not getting it. Version odoo 10. 

Avatar
Discard
Author

Is it way to use docker compose and remote debugger ? I suppose that I need to run debug server too, but I dont know why an how

Best Answer

Here is a general outline of the steps you can follow to set up a Docker container with Odoo 10, as well as how to connect to the container using either Visual Studio Code (VSCode) or PyCharm:

  1. Install Docker on your machine:
  • If you are using Windows or Mac, you can download and install Docker from the official website (https://www.docker.com/).
  • If you are using Linux, you can install Docker using your distribution's package manager (e.g., apt for Ubuntu or yum for CentOS).
  1. Pull the Odoo 10 Docker image from the Docker Hub:
Copy codedocker pull odoo:10.0

This will download the Odoo 10 image to your machine, which you can use to create a Docker container.

  1. Run the Odoo container:
Copy codedocker run -p 8069:8069 --name odoo10 -t odoo:10.0

This will start the Odoo container and expose the Odoo server on port 8069 on your local machine. The --name flag allows you to specify a name for the container (in this case, "odoo10"), which you can use to refer to the container in other Docker commands.

  1. Connect to the Odoo container using VSCode or PyCharm:
  • To connect to the container using VSCode, you will need to install the "Remote - Containers" extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers). Once the extension is installed, you can open the Command Palette (Ctrl + Shift + P) and select "Remote-Containers: Open Folder in Container..." to connect to the container.

  • To connect to the container using PyCharm, you will need to install the "Docker" plugin (https://www.jetbrains.com/help/pycharm/docker.html). Once the plugin is installed, you can go to "Preferences > Tools > Docker" and add a new Docker connection. Then, create a new project and select the Docker connection that you just created as the project interpreter.

I hope this information is helpful as you set up your Docker + Odoo + VSCode or PyCharm environment. If you have any further questions or need additional guidance, please don't hesitate to ask.


Avatar
Discard
Related Posts Replies Views Activity
1
Jan 20
3684
1
Oct 19
3926
1
Sep 19
2934
2
Sep 19
2878
2
Jan 19
8209