Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Call for contribution: Installation methods

by
Vauxoo, Moisés López Calderón
- 03/05/2018 16:24:52
Using travis2docker, the REDME file help us to create a instance:

Using the project "hr" as an example and branch 11.0:
travisfile2dockerfile --root-path=$HOME/t2d --exclude-after-success https://github.com/OCA/hr 11.0

You will have the output with all matrix of environments from travis.yml

For this case we have 5 environments:
['$HOME/t2d/script/https___github.com_OCA_hr/11.0/3_5/1', '$HOME/t2d/script/https___github.com_OCA_hr/11.0/3_5/2', '$HOME/t2d/script/https___github.com_OCA_hr/11.0/3_5/3', '$HOME/t2d/script/https___github.com_OCA_hr/11.0/3_5/4', '$HOME/t2d/script/https___github.com_OCA_hr/11.0/3_5/5']

Let's to use the environment with TESTS="1" ODOO_REPO="odoo/odoo"

For this case is the environment 4th.

You will have 2 scripts 10-build.sh to build the docker image and
20-run.sh to create the docker container:

Let's to build the docker image
cd $HOME/t2d/script/https___github.com_OCA_hr/11.0/3_5/4
./10-build.sh "--no-cache"

The output should be the same that travis-ci log and runbot ci finishing correctly with "Successfully built; Successfully tagged oca-hr:11_0_3_5_4"
After that you will have a docker image like as runbot uses.


Let's to create a container 
./20-run.sh "--entrypoint=bash"
Now you are within of the container you need create the databases using:
TEST_ENABLE="0" /entrypoint.sh

(Disabling the tests if you want just a database of demo).

The output is:
"""
2018-05-03 13:54:57,177 266 INFO openerp_test odoo.models: Computing parent left and right for table ir_ui_menu...
2018-05-03 13:54:57,338 266 INFO openerp_test odoo.service.server: Initiating shutdown
2018-05-03 13:54:57,338 266 INFO openerp_test odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
----------
Module test summary
Success hr_employee_firstname,hr_holidays_imposed_days,hr_holidays_leave_auto_approve,hr_skill

+=======================================
|  Tests summary:
|---------------------------------------
| test_server.py              Success
+=======================================
"""

Now you need run the command again
/entrypoint.sh

In order to start the server.

To connect it to this instance you need your docker skills:
docker port CONTAINER_ID 8069

In my case the output is:

Then I use a browser to connect:

I have a summary of this in the following video:



2018-05-03 3:02 GMT-05:00 Jairo Llopis <jairo.llopis@tecnativa.com>:
Yep, it's what was linked there. I thought it would be better to put the link instead of the verbatim text to avoid duplicated maintenance, but if you still prefer to copy-paste, get it from this section: https://github.com/Tecnativa/docker-odoo-base#skip-the-boring-parts

2018-05-03 2:01 GMT+01:00 Eric Caudal <eric.caudal@elico-corp.com>:

Hi Jairo,

This is a nice introduction that we could add later in our catalog listing the deployment tools.

Do you have a quick how-to to get started in few minutes like I did in the blog post?

Cheers

--
Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Hong Kong/Shenzhen/Singapore)
Odoo Gold Partner // Best Odoo Partner APAC 2014 and 2016
On 05/02/2018 04:02 PM, Jairo Llopis wrote:
# The Doodba way

[Doodba](https://github.com/Tecnativa/docker-odoo-base) solves these problems for you:

- Provide a standard project layout, where "project" is the combination of Odoo + addons + dependencies + patches for any of them.
- Provide short, easy to use, [docker-based QA tools](https://github.com/Tecnativa/doodba-qa).
- Give you full flexibility without losing safety.
- Get up and running in minutes.
- Include all dependencies you will need.
- Support a "Pull Request First" workflow for your team, taking full benefit of OCA's expertise and infrastructure from first commit.
- Separate development, testing and production environments, sharing everything except for the strictly needed differences.
- ... And many more!

To use it, [follow these instructions](https://github.com/Tecnativa/docker-odoo-base#skip-the-boring-parts). See the full README for more info.

2018-05-01 4:32 GMT+01:00 Eric Caudal <eric.caudal@elico-corp.com>:

Hi,

I have created a blog post to introduce simple methods to install OCA modules, available here: https://odoo-community.org/blog/our-blog-1/post/how-to-install-oca-modules-79


Besides, I would like to create a more permanent page in our website with a catalog of simple methods for set up. I am thinking to include for example about other Docker initiatives (Tecnativa, Vauxoo), Buildout recipes, improved pypi example, etc.


I would like to gather from the community contributions that I could include in the page.


These How-to should be basic instructions targeting new comers to install and use OCA modules.


Objective is to create a catalog of how-to and summaries: user should only have to copy/paste some instructions and get started without questions. It is not in the objective to repeat complete/complex instructions that can be found elsewhere.


Here are the guidelines (following the one I wrote for Docker in the blog):

* The method should be simple and short (no need to include standard software set up)

* The method should be self contained (except obvious dependencies like docker, pip etc.)

* The method should provide all necessary links to further set up or advanced information.


Please send me or in this mailing list your contributions as simple texts in rst or md so that I can include them later in the page.


Thanks!

--
Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Hong Kong/Shenzhen/Singapore)
Odoo Gold Partner // Best Odoo Partner APAC 2014 and 2016

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe




--
Jairo Llopis

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe




--
Jairo Llopis

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe




--
Moisés López Calderón
Mobile: (+521) 477-752-22-30
Twitter: @moylop260
hangout: moylop260@vauxoo.com
http://www.vauxoo.com - Odoo Gold Partner
Twitter: @vauxoo

Reference