Odoo different versions (docker) with different databases on Ubuntu 20.04 #532

オープン
#533 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, docker-compose, postgresql, python, ubuntu, vscode

調査の方向性

まず、Odoo 16、17、18 向けの issue の Docker Compose の例と、odoo.conf、requirements.txt、PyCharm、Visual Studio Code への参照を確認します。issue ではリポジトリのファイルやテストが指定されていないため、最初にドキュメントの変更が求められているかを明確にし、想定されるセットアップと検証の基準を定義します。

索引モデルが issue の本文から書いたものです。

説明

To set up separate Docker containers for Odoo versions 16, 17, and 18, and configure your development environment using PyCharm Community Edition or Visual Studio Code, follow these steps:

  1. Setting Up Separate Docker Containers for Each Odoo Version:

Create Separate Directories: For each Odoo version, create a separate directory to maintain isolation.

bash
Copy code
mkdir odoo16 odoo17 odoo18
Docker Compose Configuration: In each directory, create a docker-compose.yml file specifying the desired Odoo version and its dependencies. Here's an example for Odoo 16:

yaml
Copy code
version: '3'
services:
odoo:
image: odoo:16.0
ports:
- "8069:8069"
volumes:
- ./custom_addons:/mnt/extra-addons
environment:
- HOST=db
- USER=odoo
- PASSWORD=odoo
db:
image: postgres:13
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
Repeat this process for Odoo 17 and 18, adjusting the image tag accordingly.

Start Containers: Navigate to each directory and start the containers:

bash
Copy code
cd odoo16
docker-compose up -d
Repeat for odoo17 and odoo18.

  1. Configuring PyCharm Community Edition or Visual Studio Code:

PyCharm Community Edition:

Remote Development: Utilize the "Remote Repositories" feature to connect to your Docker containers.

Custom Addons: Mount your custom addons directory as a volume in the Docker container to enable real-time development.

Odoo Configuration (odoo.conf): Ensure the addons_path in your odoo.conf file includes the path to your custom addons.

Requirements (requirements.txt): Install necessary Python packages within the Docker container to match your development environment.

Visual Studio Code:

Remote Development: Use the "Remote - Containers" extension to develop inside your Docker containers.

Custom Addons: Similar to PyCharm, mount your custom addons directory to the container.

Odoo Configuration: Update the addons_path in odoo.conf to include your custom addons.

Requirements: Ensure all dependencies are installed within the container.

  1. Accessing Official Addons:

Official Odoo addons are available in the Odoo GitHub repository. You can clone the repository and include it in your addons_path for development purposes.

By following these steps, you can maintain separate environments for each Odoo version and configure your development tools accordingly.

For a detailed walkthrough on setting up Odoo 16 with PyCharm, you can refer to the following video:

主要言語
Dockerfile
スター
1.2k
フォーク
1.7k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

odoo/docker のほかの issue

odoo/docker の issue をすべて見る

似ている issue

Databases の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。