Community mailing list archives

community@mail.odoo.com

Avatar

Re: Odoo 11 docker installation

by
Teclib', Vincent Regouby
- 29/10/2017 06:01:41

Hello Robert.

Thanks a lot. I will have to test that.

I wonder why this variable is not in the Odoo container from the docker hub already but there probably might be a good reason for that.

Regards

Vincent

Le 28/10/2017 à 18:35, robert a écrit :

when you create a docker with the run command you in fact tell docker to use an image as base of your container

you probably did something like:

docker run -p 8069:8069 --name odoo --link db:db -t odoo

with the parameter -t odoo you told docker to use to image calle odoo:latest
which if not already on your computer, should be downloaded from docker hub.

you can  easily create that image yourself.
To do so, you download
https://github.com/odoo/docker/blob/60b3f82cf1ccb05878b6ce7b470ea5ce80753745/11.0/Dockerfile
to an empty folder on your server.
Then you create your own image with:
    cd to the folder with the Dockerfile
    execute:
        docker build -t my_own_odoo .

this will create a local image called "my_own_odoo"

to use it to build a container you execute something like:
    docker run -p 8069:8069 --name odoo --link db:db -t my_own_odwn_odoo

Of course nothing has changed, but you can change the Dockerfile at will and rerun the build an run commands.

robert

On 28.10.2017 14:10, Vincent Regouby wrote:

Hi,

I'am trying to install odoo 11 docker container and I face the same issue as a lot of other people with an utf-8 encoding problem for python 3.5, and with a solution that is described here : https://hub.docker.com/_/odoo/ that says

A line seems to be missing in the dockerfile :
ENV LANG C.UTF-8
https://github.com/docker-library/python/issues/13 (aleph link)

I am not expert in docker, and my understanding is that dockerfile file is used to compile the container on the system. Since I get the container from a docker run command, I don't have any dockerfile on my system. Anybody could tell me what should I do ?

I am on ubuntu 17.10

Thanks a lot.




_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


Reference