Add first version to odoo saas docker#1
Add first version to odoo saas docker#1kaerdsar wants to merge 12 commits intoit-projects-llc:masterfrom
Conversation
…et saas ready to use with portal and server database
|
Thanks. I'll try it soon. intead of |
|
Good question. I tried with 'FROM odoo' first but later in makedb.sh script I can't start postgresql server. The postgresql server is in other container, so I can't handle it from odoo container. Also I tried with docker-compose. If you have any idea I can upgrade the code, I still prefer use the official odoo docker image. |
|
As I understand |
|
I think postgres is in the same container. Am I wrong? |
|
Another idea to update docker: |
conf/openerp-server.conf
Outdated
|
I tried, but odoo doesn't work. I see odoo top menu, but it doesn't work. |
|
I add saas_portal_demo_example as we talked. The main idea is after run docker get an odoo instance and could to click "Live Preview" on a plan. Now when you run docker you get an odoo instance with saas_portal_demo_example installed and two plans created. Before can click "Live Preview" you must generate a template database for each plan and before generate a template database the server must have the addons specified in plan (i.e. pos_product_available). I don't have access to those addons, so I can't download them to the server. Also we have to fix how to get addons in create_template method, now it is using an old field (required_addons_ids) and the new model to specify addons is in saas_portal_demo module. I can't get "Live Preview" out of the box. What do you think? Any idea? |
|
pos_product_available can be found here: https://github.com/yelizariev/pos-addons |
|
modules at saas_portal_demo are only for Plan's description. It should not used to install modules. I am not sure about required_addons_ids field. I don't like it, because that field is used only to create template. create_template could be updated to use _request_server. Then we will be able to create database inside docker automatically. Right? |
|
Could be. I'll try it. |
|
This commit works if you accept the last pull request on odoo-saas-tools, because the docker run use the new create_template method. |
Dockerfile
Outdated
There was a problem hiding this comment.
if it's not a typo
why are you doing it? I believe it's better don't mess addons.
|
@kaerdsar please clean up code and finish with Reminder Addons |
Dockerfile
Outdated
There was a problem hiding this comment.
Repo for reminders:
https://github.com/yelizariev/addons-yelizariev
Also, please add these addons too:
https://github.com/yelizariev/website-addons
|
Also include creation of a reminder template. |
makedb.sh
Outdated
There was a problem hiding this comment.
as I understand it should be
/mnt/odoo-saas-docker/...
|
There is an issue with path. Could you fix it and build with --no-cache=true option to test everything ? |
|
It seems, that it doesn't work, does it? It seems, that odoo cannot handle http requests during database initialisation. Maybe running 2 odoo instances (one for portal and one for server and databases) could be a solution? |
|
I think we should start using Odoo V9 in the docker image. We also can use FROM odoo:9.0 but the first line in the docker file should change the user USER root This way, we can continue, if not, as the default user is odoo, we can't do anything in the Odoo image. |
|
Also, I think that git should not be used directly on the container, as it will make harder to update modules, the user should install git on it's computer and then use link the directories to the container. Something like: This way working with repos becomes easier. Daniel. |
|
I think that the first step for me should be have the installation up and running on my server, so later see if it's possible to do it on docker. I can't get it to work on my server. Daniel. |
When you type docker run you get saas ready to use with portal and server database. Maybe we can add more configurations.