This project is to manage a environment where you can develop your ODOO application
- You should clone this repo in any folder where you want to save your project
- command:
$ git clone [email protected]:Fabfm4/odoo-docker-server.git
- When it has finished you need run the next command, this is going to create new containers one is where the code will be and the next is where database will save
$ docker-compose up -d
Note: if you use -d
flag your containers will be running on background
- Now you need access to
addons
directory, you can find this tree:
addons/
├── application.json
├── install_application.py
├── install_requirements_git_repos.sh
└── update_git_repos.sh
- THE important file is
application.json
is a simple json file where we save our main project:
{
"main_repo": "<repo>",
"main_project": "<name of project>"
}
in attribute main_repo
we will write the ssh url from your repo
in attribute main_project
we will write the name which you want to called your project. Now
when you already write those values execute the next command:
$ python install_application.py
NOTE: Remember in your main project must exist a file called oca_dependences.txt
where you save all dependences you
need
- execute the next command to install all pip requirements:
$ ./install_requirements_git_repos.sh
So far we installed all requirements in containers of docker. Now we need to be inside to containers:
the main structure of command is:
$ docker exec -it <name_of_container> bash
You can see your containers which are up you need use the next command:
$ docker ps
In this case we need be inside of code container and execute the next commands
$ docker exec -it odoo_environment bash
...
# sh /entrypoint.sh
The last command will download the last version of public odoo (repo)