Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nowheresly/odoo-dev-docker
https://github.com/nowheresly/odoo-dev-docker
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nowheresly/odoo-dev-docker
- Owner: Nowheresly
- License: mit
- Created: 2015-05-12T20:10:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T21:10:12.000Z (over 9 years ago)
- Last Synced: 2024-04-16T11:14:12.999Z (7 months ago)
- Language: Shell
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# odoo-dev-docker
## build the data container
`docker build -f DockerfileData -t odoodata .`## run the data container
`docker run --name odoodata `## build the odoo dev container
`docker build -f DockerfileOdoo -t odoodev .`## run the odoo dev container
`docker run -p 8069:8069 --name odoodev \`
`-p 5432:5432 \`
`--volumes-from odoodata \`
`-v /c/Users/srichard/shareOdoo:/home/odoo/.local/share/Odoo \`
`-v /c/Users/srichard/addons/home/odoo/addons \`
`-v /c/Users/srichard/odoo-dev:/home/odoo/odoo-dev`## start a bash and start the server
`docker exec -i -t odoodev bash``cd odoo-dev`
`python odoo.py setup_deps`
`python odoo.py setup_pg`
`# will create an .openerprcserver file
`python odoo.py --save`
## create the db file
`sudo mkdir -p /var/lib/postgresql/9.3/main``sudo chown postgres /var/lib/postgresql/9.3/main`
`sudo chmod 700 /var/lib/postgresql/9.3/main`
`sudo su postgres -c "/usr/lib/postgresql/9.3/bin/initdb -D /var/lib/postgresql/9.3/main --encoding UTF8"`
`sudo /etc/init.d/postgresql start`
`/usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgresql.conf`