跳至內容
選單
此問題已被標幟
2 回覆
3422 瀏覽次數

Hi All,

I would like to know what is the best practise and Tools for Odoo Development. Currently we use Sublime, Pycharm, Eclipse for Development. I came across Docker but i would like to know whether Docker can be used for Successful Development and easier way to do? 

頭像
捨棄
作者 最佳答案

Hi Tony,

Thanks for the answer. between is Docker can be used for Development other than Deployment . How efficient and faster will be when we use Docker for Development? when using IDE for Development and it will very simple and easier to manage, update, etc... but Docker i have no clue about it. 

頭像
捨棄
最佳答案

Hi, there,

what you said involves 2 questions:

1. how do you choose the IDE?

I think Any IDE is ok, depending on which is familiar to you. vs code is another option too.

2. Can I use docker to deploy the odoo system?

absolutely, the Docker version is offered by the official and you can download the nightly docker file and build it to run the env.

BTW,

Considering your requirement, I think the vs code is more suitable for you because this IDC has a lot of plugins and docker is included.

more details the attached.

I hope it is useful for you.

Best wishes.

--------------------------------------

### 1.Install git and docker(CentOS)
yum install git
yum install docker
systemctl restart docker

### 2.Create odoo and postgres software directory
mkdir -p /root/odoo-dev/odoo15

### 3.Get postgres latest version and build the image
cd /root/odoo-dev/odoo15
git clone https://github.com/docker-library/postgres.git
cd /root/odoo-dev/odoo15/postgres/14/bullseye
docker build -t postgres:14 .

### 4.Get odoo latest version and build the image
cd /root/odoo-dev/odoo15
git clone https://github.com/odoo/docker.git
cd /root/odoo-dev/odoo15/docker/15.0
docker build -t odoo15 .

### 5.Run the postgres server and expose the dblink db to be connected
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:14

### 6.Run the Odoo server with the dblink db and expose the network port to the host
docker run -p 8079:8069 --name odoo --link db:db -t odoo15:latest

### 7.Open the browser to initial the database.
http://xxx.xxx.xxx.xxx:8079/web




頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
8月 22
9059
1
12月 20
13546
1
8月 25
173
4
7月 25
1535
1
7月 25
847