-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal :: Enhance Explicity #5
Comments
Hi, I'm not sure i understood everything well but i'll try to answer. About motivation/problem/proposal: According to this, all the problems you exposed become advantages:
In a sidenote i'd like to clarify a point that a lot of people miss on your proposal part: the main reason we are using our Debian repo with a pinned release is to allow us to build reproducible images and that's also a big Docker advantage (cache). In conclusion, your proposition as i understand it increases a lot the complexity and we want to keep these Dockerfiles simple. I think this is out of our scope (lightweight, ready to use images) and probably out of the Docker philosophy too (read "everything in containers"). So i reject the other option, a new "functionality centric framework" Dockerfile and i'm closing this issue. Regards NB: Please note that i am absolutely not against placing some hooks in the Dockerfile (so one can personalize it a little more for his needs). |
Hi Simon Some comments: closing the "issue" is to me like "closing the discussion", if this is what you wanted to, I can accept that. I'm not sure id this is what you intended. Therefore I actually feel bad about replying:
It seems like a highly opinioneted prelusion and there is a whole theoretic body behind why this should not be like this. For a starting pointer: http://12factor.net/dev-prod-parity - To me the arguments are convincing: it comes down to transparency as an important driver of knowledgability and parallelity as an important driver to reduce entropy in the whole toolchain. The statment "it might be less convenient" carries a lot whole bunch of silent assumptions and would probably not hold true from global viewpoint. This is also the main concern of my proposal: Transparency. I see several of your arguments are based on a Python- or OS centric worldview. Such as for example:
Therefore they are inherently intransparent in an os and language agnostic notion. Of curse assuming the whole runtime stack (4) is equal to reference one, people might be with you. But the reality is, that python centricity or os centricity cannot be in the best interest of odoo. We all love python, but that's not the point. - I'll update the text put agnosticity in context. I argue Odoo is not just a python library, it is the actual service-app written in python which delivers it's functionality to the web server. Some plain misunderstandings:
Maybe instead of replying, we could update our posts and make a comment to re-read in order to keep noise in zeroing out misunderstandings limited.. Best |
Hi, Regards |
Well... I cannot see reasonable motivation for this, so I tend to disagree strongly. My initial motivation to push things forward in this respect might come to an ending. It is not precisely respectful. |
My message wasn't meant to be harsh. As i said, we are on a bugtracker and as we have real medias to discuss this kind of subject, we should just use them. Anyway, i'll gladly review and discuss a precise enhancement on a pull request or if you're facing a concrete issue be sure that i'll work on it. |
OK, let's keep something like discourse in mind, while seeing if odoo help realy will be useful one day... |
@sle-odoo please consider creating an open gitter channel; i think it would be easy to get edge users together, as far as I know, giardino, jamotion, xcgd, adhoc, akretion, vauxoo among others are experimenting with docker... |
Proposal
Motivation
The emerging use case of containers might be in development and deployment alike. See http://12factor.net/dev-prod-parity for a starting point in theory backup in dev-prod-parity. In all emerging scenarios, the Dockerfile is the common interface to an application, so what's made transparent there might be consumed first and foremost by devops and developers. Developers and Devops can generally improve their efficiency, based on a well defined, agnostic and declarative interface, as a Dockerfile can provide it.
Problem
In the context of odoo, this means it might not be an especially good idea to let odoo install packager do critical magic silently such as:
create build environment - because you might strip it down afterwards to reduce attack vector@sle-odoo clarified, that the deb package only resolves minimum dependenciesProposal
Make use of Dockerfiles directives and adjacent shell scripts (nothing fancy or too python centric) to prepare in nine distinct steps the final app container:
wsgi
, but on a single instance also - exceptionally - : nginx, psqldocker run --env-file
)Outlook
I'm convinced the whole ecosystem will shift to docker (or containers). This will comprise everyone, from the developer to the devops, to the end user, to the functional people (yes, as it is really easier to run a docker, than to perform a server install on whatever OS or distro of choice). So perspectively, any monolythic tooling for build / installation / packaging / deployment (unless it would be compiling source) would slowly fade away into legacy. Even the preforking tooling might become obsolete as dockers can scale through the process model at similar costs (and more generically), as well.
The app and only the app
This perspective is appeling, because it reduces complexity out of the codebase, as a lot of aditional tooling could be stripped off in the mid-term, focusing every braincell of the whole odoo community on whats could be migrating openerp/openerp into just flat openerp/
The text was updated successfully, but these errors were encountered: