Skip to content
This repository was archived by the owner on Jan 24, 2018. It is now read-only.
This repository was archived by the owner on Jan 24, 2018. It is now read-only.

Script CMD in Dockerfile and command after creation #198

@YannickB

Description

@YannickB

Hello all,

I am working on the docker compose for Clouder, using our images.

The main problem I am facing is the fact I have to replace the variable in config https://github.com/clouder-community/clouder/blob/master/clouder_template_odoo/images/odoo-data/odoo.conf#L14, which are currently done by Clouder https://github.com/clouder-community/clouder/blob/master/clouder_template_odoo/template.py#L61. Of course, for the docker-compose we don't have a Clouder to execute them.

Maybe there is a way to execute theses commands in the docker-compose, but I guess we should instead set them in environnement variable, and run a script on CMD which will replace the variable in config if they are not set, then run odoo-server.py

That said... I really dislike the idea of a script in CMD. I know everyone is using it, but I think it's poor design. If I do this in the odoo images we'll probably use them in all other Clouder images, do we have any other alternatives ? thoughts ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions