Code Monkey home page Code Monkey logo

docker-tempo-odoo's Introduction

Requirement

Local user should be in this group: docker

Then fetch this repository:

git clone [email protected]:TeMPO-Consulting/docker-odoo

And go into this one.

Build

Then you have to build an image from this repository:

 docker build -t odoo:latest .

Now you have to run the container. But have a look to an example of what could be done:

docker run -d -p 2280:22 -p 8069:8069 --name odoo odoo:latest /usr/bin/supervisord

We know that:

  • it will be run in daemon (-d option)
  • we open port 8069 (local machine and in docker)
  • we open port 22 on port 2280 on our machine so that we use 2280 to access to the docker
  • the name of the container will be odoo
  • on our machine, we use the odoo:latest docker base to create this container (we built it previously)
  • the default command used when the container is launched is /usr/bin/supervisord so that all services will be available (ssh, postgresql, etc.)

And now you're running postgreSQL/ssh for Unifield.

Access to the container

As SSHD is launched on the machine, we just have to do:

ssh -p 2280 docker@localhost

And we enter in the container.

Launch odoo

After having Access to the container, just do this:

cd /opt/odoo
./odoo.py

Odoo will be launched.

Manage containers

If you want to stop the container:

docker stop odoo

To run an existing container:

docker start odoo

That's all!

Find 5432 port

Just do this:

docker inspect --format='{{(index (index .NetworkSettings.Ports "5432/tcp") 0).HostPort}}' unifield

Use X11 capabilities and run Eclipse into the Docker environment

Before launching the build of this directory, decomment this line:

RUN apt-get install -y eclipse

Then:

  • build your docker

  • run a docker

  • access it via ssh using this command:

    ssh -X -p 2280 docker@localhost

Then, in the given SSH prompt, just tape:

eclipse

and it will launch Eclipse.

Known problems

Internal Server Error

Try to access here: http://localhost:8069/web/database/selector

And then use Manage Databases link so that you can create a new database.

It seems that the first database creation failed with this error:

QWebTemplateNotFound: External ID not found in the system: web.login

with no other explanation. Very strange.

docker-tempo-odoo's People

Contributors

blankoworld avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.