Skip to content

Instantly share code, notes, and snippets.

@stijnh92
Last active March 27, 2019 09:35
Show Gist options
  • Save stijnh92/b0af5e15229f616e4bf74b5ea385419e to your computer and use it in GitHub Desktop.
Save stijnh92/b0af5e15229f616e4bf74b5ea385419e to your computer and use it in GitHub Desktop.
Lando YAML configuration for Odoo 8.0
# ---
# Update your odoo code so the root user check is disabled. (openerp/cli/server.py:52 (check_root_user())
#
# Before running `lando start` comment the `command` line.
# When this is done, uncomment the `command` line and then run `lando restart`.
#
# Next, run `docker ps` to check on what external port the odoo service (internal 8069) is running.
# ---
name: odoo
services:
python:
type: python:2.7
command: /app/openerp-server --logfile=/app/odoo.log --db_host=postgresql --db_user=odoo_user --db_password=odoo_password
extras:
- "apt-get update -y"
- "apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev -y"
- "pip install -r requirements.txt"
overrides:
services:
ports:
- 8069
postgresql:
type: postgres:9.3
creds:
user: odoo_user
password: odoo_password
database: odoo_database
tooling:
pip:
service: python
python:
service: python
easy_install:
service: python
pyvenv:
service: python
postgres:
user: root
service: postgresql
@kamalkech
Copy link

After run lando start get this errors :


error: Error: postgres version 9.3 is not supported
    at new LandoService (/snapshot/lando/build/cli/plugins/lando-core/compose/lando/builder.js:0:0)
    at new LandoService (/snapshot/lando/build/cli/plugins/lando-core/types/service/builder.js:0:0)
    at new LandoPostgres (/snapshot/lando/build/cli/plugins/lando-services/services/postgres/builder.js:0:0)
    at module.exports.app.events.on._.forEach.service (/snapshot/lando/build/cli/plugins/lando-services/app.js:0:0)
    at arrayEach (/snapshot/lando/build/cli/node_modules/lodash/lodash.js:516:11)
    at Function.forEach (/snapshot/lando/build/cli/node_modules/lodash/lodash.js:9344:14)
    at AsyncEvents.module.exports.app.events.on (/snapshot/lando/build/cli/plugins/lando-services/app.js:0:0)
    at AsyncEvents.handle (/snapshot/lando/build/cli/lib/events.js:0:0)
    at emit.Promise.each.fn (/snapshot/lando/build/cli/lib/events.js:0:0)
From previous event:
    at AsyncEvents.emit (/snapshot/lando/build/cli/lib/events.js:0:0)
    at module.exports.init.loadPlugins.then (/snapshot/lando/build/cli/lib/app.js:0:0)
From previous event:
    at App.init (/snapshot/lando/build/cli/lib/app.js:0:0)
    at initAndReport (/snapshot/lando/build/cli/lib/app.js:0:0)
    at App.start (/snapshot/lando/build/cli/lib/app.js:0:0)
    at Object.exports.appToggle (/snapshot/lando/build/cli/plugins/lando-core/lib/utils.js:0:0)
    at Object.run (/snapshot/lando/build/cli/plugins/lando-core/tasks/start.js:0:0)
    at module.exports.parseToYargs.checkForUpdates.then.lando.bootstrap.then.lando.events.emit.then.then.then.then.then (/snapshot/lando/build/cli/lib/cli.js:0:0)
From previous event:
    at module.exports.parseToYargs.checkForUpdates.then.lando.bootstrap.then.lando (/snapshot/lando/build/cli/lib/cli.js:0:0)
From previous event:
    at module.exports.parseToYargs.checkForUpdates.then (/snapshot/lando/build/cli/lib/cli.js:0:0)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
From previous event:
    at Object.handler (/snapshot/lando/build/cli/lib/cli.js:0:0)
    at Object.runCommand (/snapshot/lando/build/cli/node_modules/yargs/lib/command.js:238:44)
    at Object.parseArgs [as _parseArgs] (/snapshot/lando/build/cli/node_modules/yargs/yargs.js:1063:30)
    at Function.get [as argv] (/snapshot/lando/build/cli/node_modules/yargs/yargs.js:1004:21)
    at Cli.run (/snapshot/lando/build/cli/lib/cli.js:0:0)
    at Object.<anonymous> (/snapshot/lando/build/cli/bin/lando.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1252:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:711:10)
    at Module.load (internal/modules/cjs/loader.js:610:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:549:12)
    at Function.Module._load (internal/modules/cjs/loader.js:541:3)
    at Function.Module.runMain (pkg/prelude/bootstrap.js:1307:12)
    at startup (internal/bootstrap/node.js:274:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:608:3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment