Odoo: Difference between revisions

From Alpine Linux
(cleanup some informations & add warning)
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
= Preparing Alpine =
= Preparing Alpine =
After installation and the usual repo update/upgrade add user for odoo (does not have to be named odoo)
After installation and the usual repo update/upgrade add user for odoo (does not have to be named odoo)
{{Cmd|adduser odoo
{{Cmd|<nowiki># adduser odoo
echo "odoo ALL{{=}}(ALL) ALL" >> /etc/sudoers
# su - odoo
addgroup sudo
</nowiki>}}
adduser odoo sudo
su - odoo}}


= Installing dependencies =
= Installing dependencies =
{{Cmd|sudo apk add sudo nano less python3 py-pip py3-lxml py3-greenlet py3-gevent py3-psutil py3-pillow py3-psycopg2 py3-reportlab postgresql-dev postgresql git gcc g++ py3-pyldap
{{Cmd|<nowiki># apk add python3 py-pip py3-lxml py3-greenlet py3-gevent py3-psutil py3-pillow py3-psycopg2 py3-reportlab postgresql-dev postgresql git g++ py3-pyldap</nowiki>}}
sudo pip3 install --upgrade pip}}


Clone Odoo git repository
Clone Odoo git repository
{{Cmd|cd ~
{{Cmd|$ cd ~
git clone https://github.com/odoo/odoo.git
$ git clone https://github.com/odoo/odoo.git
cd odoo}}
$ cd odoo}}


{{obsolete|pip is externally managed! the packages should be installed using apk or using a virtual enviroment}}
Install python dependencies
Install python dependencies
{{Cmd|sudo pip3 install -r requirements.txt}}
{{Cmd|# pip3 install -r requirements.txt}}


= Postgres installation =
= Postgres installation =
Create, configure and start database
Create, configure and start database
{{Cmd|sudo /etc/init.d/postgresql setup
{{Cmd|<nowiki># rc-service setup
sudo /etc/init.d/postgresql start
# rc-service postgresql start
sudo rc-update add postgresql}}
# rc-update add postgresql
</nowiki>}}


Create new database user (Odoo will not run under default postgres user)
Create new database user (Odoo will not run under default postgres user)
{{Cmd|sudo su - postgres -c "createuser -s odoo"}}
{{Cmd|# su - postgres -c "createuser -s odoo"}}


= Running Odoo =
= Running Odoo =
This will serve Odoo on localhost:8069 and connect to odoo DB using Unix socket
This will serve Odoo on <code>localhost:8069</code> and connect to odoo DB using Unix socket
{{Cmd|./odoo-bin}}
{{Cmd|$ ./odoo-bin}}


= Also see =
= Also see =
[https://www.odoo.com/documentation/16.0/administration/install.html]{{Odoo installation instructions}}
[https://www.odoo.com/documentation/16.0/administration/install.html Odoo Odoo's installation instructions]


[[Category:Server]]
[[Category:Server]]

Latest revision as of 21:00, 21 September 2023

Introduction

Odoo is an all-in-one business software including CRM, website/e-commerce, billing, accounting, manufacturing, warehouse - and project management, and inventory.

Preparing Alpine

After installation and the usual repo update/upgrade add user for odoo (does not have to be named odoo)

# adduser odoo # su - odoo

Installing dependencies

# apk add python3 py-pip py3-lxml py3-greenlet py3-gevent py3-psutil py3-pillow py3-psycopg2 py3-reportlab postgresql-dev postgresql git g++ py3-pyldap

Clone Odoo git repository

$ cd ~ $ git clone https://github.com/odoo/odoo.git $ cd odoo

This material is obsolete ...

pip is externally managed! the packages should be installed using apk or using a virtual enviroment (Discuss)

Install python dependencies

# pip3 install -r requirements.txt

Postgres installation

Create, configure and start database

# rc-service setup # rc-service postgresql start # rc-update add postgresql

Create new database user (Odoo will not run under default postgres user)

# su - postgres -c "createuser -s odoo"

Running Odoo

This will serve Odoo on localhost:8069 and connect to odoo DB using Unix socket

$ ./odoo-bin

Also see

Odoo Odoo's installation instructions