Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Recommended Contributor Tooling (RCT)
by
Narayana Moturi
Hi Levent - How did you manage to upgrade the databases with latest bug fixes..?
On Wed, Oct 21, 2015 at 8:23 PM, Levent Karakas <levent@mektup.at> wrote:
I have few comments from our dockerizing experience in the production environment, that may contribute to this discussion:1) We always use external database out of docker environment in production. More specifically we use Amazon RDS but even if it was managed by ourselves, we wouldn't use -link unless we use one database per docker. Db container restart/update messes up all containers that are linked to it and requires restart of all containers. Yes this is a huge discussion since it has advantages and disadvantages, but i want you to know how we ended up.2) We use a daily bugfix strategy, thus we get latest fixes from github every night and create a new image. The rest is just the restart of containers with the new image.3) For downloading latest source/syncing fastest and safest option for us was to download zip archive. You might want to consider this since this saves space since you don't need git. It works like this:ENV ODOO_VERSION 8.0curl -o odoo.zip -SL https://github.com/oca/odoo/archive/${ODOO_VERSION}.zip \&& unzip -q odoo.zip -d /tmp \&& mv /tmp/odoo-${ODOO_VERSION} /opt/odoo/server \&& rm -rf odoo.zip4) If you happen to launch a source in docker, python compiles .py files and starts creating .pyc files which increases docker instances' differential file system. We get over this problem by compiling all sources during image creation.python -m compileall /opt/odoo/server5) We cleaned up the image to get smaller once the image is readyapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false npm gcc \&& apt-get -y autoclean \&& rm -rf /var/lib/apt/lists/*6) removed unnecessary addons which won't be used on the server side:rm -rf /opt/odoo/server/addons/hw_* \I will be glad if we can use our experience to have something better for the community. Our docker is not published but i can share it here, if anyone is interested._______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe
Reference
-
Recommended Contributor Tooling (RCT)
bydar@devco.co-
Re: Recommended Contributor Tooling (RCT)
byXCG Consulting, Houzéfa Abbasbhay