Vauxoo / docker-odoo-image

Base docker image for instances
GNU General Public License v2.0
18 stars 29 forks source link

[REF] odoo-shippable: Allow start ssh for "odoo" user #202

Closed moylop260 closed 7 years ago

moylop260 commented 7 years ago

Currently running the following command: docker run --rm -it --user=odoo vauxoo/odoo-80-image-shippable-auto /etc/init.d/ssh start

Show the following error: mkdir: cannot create directory ‘/var/run/sshd’: Permission denied

Currently, odoo is not a sudoers user and It can't run sudo command. That is fine.

Now we need a special access to start ssh service for odoo user in order to enable it from runbot builds.

moylop260 commented 7 years ago

@ruiztulio Any clue?

Can help us supervisor for this focus?

ruiztulio commented 7 years ago

@moylop260 Yes, the only point where you need to be root is to start supervisor, then it can start any service you configure here, maybe started in the entry point, but the supervisor process have to start as root

moylop260 commented 7 years ago

I got it Thanks

moylop260 commented 7 years ago

We are looking for if is posible start the ssh service from runbot using;

moylop260 commented 7 years ago

This feature will be worked from https://github.com/Vauxoo/runbot-addons/pull/93