how-to-install-odoo-using-docker.png
Blogger_636313953187816113.jpg
By: Sreejith

How to Install Odoo Using Docker

In this blog how the docker is used to run Odoo in your system is explained. It is very simple to use Docker for Odoo.

Installing Docker on Ubuntu 16.04 LTS Xenial. The docker engine is only suitable for the 64bit operating system. 

Make sure that the machine's CPU supports virtualization technology and virtualization support is enabled in BIOS. 


1. First, update the Ubuntu


		sudo apt update


2Add a key for our docker


		sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D


3. Key is added to the machine, add the repository source to the apt source list.


		sudo nano /etc/apt/sources.list.d/docker.list


the following line this


      		deb https://apt.dockerproject.org/repo ubuntu-xenial main


Save and exit

 

4. Update the apt index


       		sudo apt update


5. Install Linux kernel


      		 sudo apt-get install linux-image-extra-$(uname -r)


6. Install Docker engine


       		sudo apt-get install docker-engine


7. Install Official Docker Script to install the latest Docker Engine


     		wget -qO- https://get.docker.com/ | sh

      

if no wget then install wget by running this code


              sudo apt-get install wget


8. Add User to Docker Group


       In my case, it is cybrosys


      		usermod -aG docker <user>
       eg: usermod -aG docker cybrosys


9. Starting docker


       		sudo systemctl start docker


10. Running Docker


       		sudo docker run hello-world


11. Stop docker


       		sudo docker stop <processid>

       

To get the process id run the following command


              	docker ps -a


We successfully installed docker on ubuntu system and now going to setup odoo using the docker 

We need two containers, one for database and one for odoo

 

12. Run the following command to pull postgres and creates user   

   

       		sudo docker run -d -e POSTGRES_USER=odoo -e POSTGRES_USER=odoo --name db postgres


13. Run the following command to pull odoo and it creates an instance. After this command, you can see the service is running on port 8069

       		sudo docker run -p 0.0.0.0:8069:8069 --name odoo --link db:db -t odoo

 

After this command, you can see that the Odoo server is running on 0.0.0.0:8086


14. To stop/start odoo service


       		sudo docker start/stop odoo




Comments

0


Leave a comment

 
Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry
Kerala, India - 673635

London

Cybrosys Limited
2 Sheen Road,
Richmond, London
England - TW9 1AE

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

Banglore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message