init
This commit is contained in:
parent
1dbc110a74
commit
06e40141eb
15
.env
Normal file
15
.env
Normal file
@ -0,0 +1,15 @@
|
||||
COMPOSE_PROJECT_NAME=odoo-dev
|
||||
#Odoo
|
||||
ODOO_IMAGE=hub.nextzenos.com/nexterp/odoo18-base
|
||||
ODOO_TAG=dev
|
||||
ODOO_PORT=10017
|
||||
ODOO_CONTAINER=odoo18-base-dev
|
||||
# ODOO_CHAT_PORT =
|
||||
ODOO_ADDONS=/root/dev/NextERP/dev/odoo18/Odoo18/deployment/addons
|
||||
ODOO_CONFIG=/root/dev/NextERP/dev/odoo18/Odoo18/deployment/etc
|
||||
ODOO_BACKUP=/root/dev/NextERP/dev/odoo18/Odoo18/deployment/backup
|
||||
#Database
|
||||
PG_PORT=5434
|
||||
PG_USER=default_repo
|
||||
PG_PASS=smartyourlife
|
||||
ENTRYPOINT=./entrypoint.sh
|
BIN
backup/backup.zip
Normal file
BIN
backup/backup.zip
Normal file
Binary file not shown.
20
docker-compose.nodb.yml
Executable file
20
docker-compose.nodb.yml
Executable file
@ -0,0 +1,20 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
app:
|
||||
image: ${ODOO_IMAGE:-odoo}:${ODOO_TAG:-18}
|
||||
container_name: ${ODOO_CONTAINER:-odoo}
|
||||
ports:
|
||||
- ${ODOO_PORT:-8069}:8069
|
||||
# - "${ODOO_CHAT_PORT:-8072}:8072"
|
||||
tty: true
|
||||
command: --
|
||||
environment:
|
||||
- HOST=db
|
||||
- USER=${PG_USER:-changeme}
|
||||
- PASSWORD=${PG_PASS:-password}
|
||||
volumes:
|
||||
- ${ODOO_ADDONS:-./addons}:/mnt/extra-addons
|
||||
- ${ODOO_CONFIG:-./etc}:/etc/odoo
|
||||
- ${ODOO_BACKUP:-./backup}:/var/lib/odoo/backup
|
||||
restart: always
|
||||
|
35
docker-compose.yml
Executable file
35
docker-compose.yml
Executable file
@ -0,0 +1,35 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
app:
|
||||
image: ${ODOO_IMAGE:-odoo}:${ODOO_TAG:-18}
|
||||
container_name: ${ODOO_CONTAINER:-odoo}
|
||||
# user: root
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- ${ODOO_PORT:-8069}:8069
|
||||
# - "${ODOO_CHAT_PORT:-8072}:8072"
|
||||
tty: true
|
||||
command: --
|
||||
environment:
|
||||
- HOST=db
|
||||
- USER=${PG_USER:-changeme}
|
||||
- PASSWORD=${PG_PASS:-password}
|
||||
volumes:
|
||||
- ${ODOO_ADDONS:-./addons}:/mnt/extra-addons
|
||||
- ${ODOO_CONFIG:-./etc}:/etc/odoo
|
||||
- ${ODOO_BACKUP:-./backup}:/var/lib/odoo/backup
|
||||
restart: always
|
||||
db:
|
||||
image: postgres:16
|
||||
# user: root
|
||||
environment:
|
||||
- POSTGRES_USER=${PG_USER:-changeme}
|
||||
- POSTGRES_PASSWORD=${PG_PASS:-password}
|
||||
- POSTGRES_DB=postgres
|
||||
ports:
|
||||
- ${PG_PORT:-5432}:5432
|
||||
restart: always
|
||||
volumes:
|
||||
- ${PG_DATA:-./postgresql}:/var/lib/postgresql/data
|
||||
|
51
entrypoint.sh
Executable file
51
entrypoint.sh
Executable file
@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ -v PASSWORD_FILE ]; then
|
||||
PASSWORD="$(< $PASSWORD_FILE)"
|
||||
fi
|
||||
|
||||
# set the postgres database host, port, user and password according to the environment
|
||||
# and pass them as arguments to the odoo process if not present in the config file
|
||||
: ${HOST:=${DB_PORT_5432_TCP_ADDR:='db'}}
|
||||
: ${PORT:=${DB_PORT_5432_TCP_PORT:=5432}}
|
||||
: ${USER:=${DB_ENV_POSTGRES_USER:=${POSTGRES_USER:='odoo'}}}
|
||||
: ${PASSWORD:=${DB_ENV_POSTGRES_PASSWORD:=${POSTGRES_PASSWORD:='odoo'}}}
|
||||
|
||||
DB_ARGS=()
|
||||
function check_config() {
|
||||
param="$1"
|
||||
value="$2"
|
||||
if grep -q -E "^\s*\b${param}\b\s*=" "$ODOO_RC" ; then
|
||||
value=$(grep -E "^\s*\b${param}\b\s*=" "$ODOO_RC" |cut -d " " -f3|sed 's/["\n\r]//g')
|
||||
fi;
|
||||
DB_ARGS+=("--${param}")
|
||||
DB_ARGS+=("${value}")
|
||||
}
|
||||
check_config "db_host" "$HOST"
|
||||
check_config "db_port" "$PORT"
|
||||
check_config "db_user" "$USER"
|
||||
check_config "db_password" "$PASSWORD"
|
||||
|
||||
case "$1" in
|
||||
-- | odoo)
|
||||
shift
|
||||
if [[ "$1" == "scaffold" ]] ; then
|
||||
exec odoo "$@"
|
||||
else
|
||||
# shellcheck disable=SC2068
|
||||
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
|
||||
exec odoo "$@" "${DB_ARGS[@]}"
|
||||
fi
|
||||
;;
|
||||
-*)
|
||||
# shellcheck disable=SC2068
|
||||
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
|
||||
exec odoo "$@" "${DB_ARGS[@]}"
|
||||
;;
|
||||
*)
|
||||
exec "$@"
|
||||
esac
|
||||
|
||||
exit 1
|
15
env.template
Executable file
15
env.template
Executable file
@ -0,0 +1,15 @@
|
||||
COMPOSE_PROJECT_NAME =
|
||||
#Odoo
|
||||
ODOO_IMAGE =
|
||||
ODOO_TAG=
|
||||
ODOO_PORT = 10017
|
||||
ODOO_CONTAINER =
|
||||
# ODOO_CHAT_PORT =
|
||||
ODOO_ADDONS=./addons
|
||||
ODOO_CONFIG=./etc
|
||||
ODOO_BACKUP=./backup
|
||||
#Database
|
||||
PG_PORT=
|
||||
PG_USER=
|
||||
PG_PASS=
|
||||
ENTRYPOINT=./entrypoint.sh
|
9
etc/odoo.conf
Normal file
9
etc/odoo.conf
Normal file
@ -0,0 +1,9 @@
|
||||
[options]
|
||||
addons_path = /mnt/extra-addons
|
||||
data_dir = /var/lib/odoo
|
||||
db_host = db
|
||||
db_port = 5432
|
||||
db_user = default_repo
|
||||
db_password = smartyourlife
|
||||
proxy_mode = True
|
||||
|
7
odoo.conf.template
Executable file
7
odoo.conf.template
Executable file
@ -0,0 +1,7 @@
|
||||
[options]
|
||||
addons_path = /mnt/extra-addons
|
||||
data_dir = /var/lib/odoo
|
||||
db_host =
|
||||
db_port =
|
||||
db_user =
|
||||
db_password =
|
1
postgresql/PG_VERSION
Normal file
1
postgresql/PG_VERSION
Normal file
@ -0,0 +1 @@
|
||||
16
|
BIN
postgresql/base/1/112
Normal file
BIN
postgresql/base/1/112
Normal file
Binary file not shown.
BIN
postgresql/base/1/113
Normal file
BIN
postgresql/base/1/113
Normal file
Binary file not shown.
BIN
postgresql/base/1/1247
Normal file
BIN
postgresql/base/1/1247
Normal file
Binary file not shown.
BIN
postgresql/base/1/1247_fsm
Normal file
BIN
postgresql/base/1/1247_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/1247_vm
Normal file
BIN
postgresql/base/1/1247_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/1249
Normal file
BIN
postgresql/base/1/1249
Normal file
Binary file not shown.
BIN
postgresql/base/1/1249_fsm
Normal file
BIN
postgresql/base/1/1249_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/1249_vm
Normal file
BIN
postgresql/base/1/1249_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/1255
Normal file
BIN
postgresql/base/1/1255
Normal file
Binary file not shown.
BIN
postgresql/base/1/1255_fsm
Normal file
BIN
postgresql/base/1/1255_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/1255_vm
Normal file
BIN
postgresql/base/1/1255_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/1259
Normal file
BIN
postgresql/base/1/1259
Normal file
Binary file not shown.
BIN
postgresql/base/1/1259_fsm
Normal file
BIN
postgresql/base/1/1259_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/1259_vm
Normal file
BIN
postgresql/base/1/1259_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/13396
Normal file
BIN
postgresql/base/1/13396
Normal file
Binary file not shown.
BIN
postgresql/base/1/13396_fsm
Normal file
BIN
postgresql/base/1/13396_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/13396_vm
Normal file
BIN
postgresql/base/1/13396_vm
Normal file
Binary file not shown.
0
postgresql/base/1/13399
Normal file
0
postgresql/base/1/13399
Normal file
BIN
postgresql/base/1/13400
Normal file
BIN
postgresql/base/1/13400
Normal file
Binary file not shown.
BIN
postgresql/base/1/13401
Normal file
BIN
postgresql/base/1/13401
Normal file
Binary file not shown.
BIN
postgresql/base/1/13401_fsm
Normal file
BIN
postgresql/base/1/13401_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/13401_vm
Normal file
BIN
postgresql/base/1/13401_vm
Normal file
Binary file not shown.
0
postgresql/base/1/13404
Normal file
0
postgresql/base/1/13404
Normal file
BIN
postgresql/base/1/13405
Normal file
BIN
postgresql/base/1/13405
Normal file
Binary file not shown.
BIN
postgresql/base/1/13406
Normal file
BIN
postgresql/base/1/13406
Normal file
Binary file not shown.
BIN
postgresql/base/1/13406_fsm
Normal file
BIN
postgresql/base/1/13406_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/13406_vm
Normal file
BIN
postgresql/base/1/13406_vm
Normal file
Binary file not shown.
0
postgresql/base/1/13409
Normal file
0
postgresql/base/1/13409
Normal file
BIN
postgresql/base/1/13410
Normal file
BIN
postgresql/base/1/13410
Normal file
Binary file not shown.
BIN
postgresql/base/1/13411
Normal file
BIN
postgresql/base/1/13411
Normal file
Binary file not shown.
BIN
postgresql/base/1/13411_fsm
Normal file
BIN
postgresql/base/1/13411_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/13411_vm
Normal file
BIN
postgresql/base/1/13411_vm
Normal file
Binary file not shown.
0
postgresql/base/1/13414
Normal file
0
postgresql/base/1/13414
Normal file
BIN
postgresql/base/1/13415
Normal file
BIN
postgresql/base/1/13415
Normal file
Binary file not shown.
0
postgresql/base/1/1417
Normal file
0
postgresql/base/1/1417
Normal file
0
postgresql/base/1/1418
Normal file
0
postgresql/base/1/1418
Normal file
BIN
postgresql/base/1/174
Normal file
BIN
postgresql/base/1/174
Normal file
Binary file not shown.
BIN
postgresql/base/1/175
Normal file
BIN
postgresql/base/1/175
Normal file
Binary file not shown.
BIN
postgresql/base/1/2187
Normal file
BIN
postgresql/base/1/2187
Normal file
Binary file not shown.
0
postgresql/base/1/2224
Normal file
0
postgresql/base/1/2224
Normal file
BIN
postgresql/base/1/2228
Normal file
BIN
postgresql/base/1/2228
Normal file
Binary file not shown.
0
postgresql/base/1/2328
Normal file
0
postgresql/base/1/2328
Normal file
0
postgresql/base/1/2336
Normal file
0
postgresql/base/1/2336
Normal file
BIN
postgresql/base/1/2337
Normal file
BIN
postgresql/base/1/2337
Normal file
Binary file not shown.
BIN
postgresql/base/1/2579
Normal file
BIN
postgresql/base/1/2579
Normal file
Binary file not shown.
BIN
postgresql/base/1/2600
Normal file
BIN
postgresql/base/1/2600
Normal file
Binary file not shown.
BIN
postgresql/base/1/2600_fsm
Normal file
BIN
postgresql/base/1/2600_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2600_vm
Normal file
BIN
postgresql/base/1/2600_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2601
Normal file
BIN
postgresql/base/1/2601
Normal file
Binary file not shown.
BIN
postgresql/base/1/2601_fsm
Normal file
BIN
postgresql/base/1/2601_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2601_vm
Normal file
BIN
postgresql/base/1/2601_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2602
Normal file
BIN
postgresql/base/1/2602
Normal file
Binary file not shown.
BIN
postgresql/base/1/2602_fsm
Normal file
BIN
postgresql/base/1/2602_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2602_vm
Normal file
BIN
postgresql/base/1/2602_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2603
Normal file
BIN
postgresql/base/1/2603
Normal file
Binary file not shown.
BIN
postgresql/base/1/2603_fsm
Normal file
BIN
postgresql/base/1/2603_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2603_vm
Normal file
BIN
postgresql/base/1/2603_vm
Normal file
Binary file not shown.
0
postgresql/base/1/2604
Normal file
0
postgresql/base/1/2604
Normal file
BIN
postgresql/base/1/2605
Normal file
BIN
postgresql/base/1/2605
Normal file
Binary file not shown.
BIN
postgresql/base/1/2605_fsm
Normal file
BIN
postgresql/base/1/2605_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2605_vm
Normal file
BIN
postgresql/base/1/2605_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2606
Normal file
BIN
postgresql/base/1/2606
Normal file
Binary file not shown.
BIN
postgresql/base/1/2606_fsm
Normal file
BIN
postgresql/base/1/2606_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2606_vm
Normal file
BIN
postgresql/base/1/2606_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2607
Normal file
BIN
postgresql/base/1/2607
Normal file
Binary file not shown.
BIN
postgresql/base/1/2607_fsm
Normal file
BIN
postgresql/base/1/2607_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2607_vm
Normal file
BIN
postgresql/base/1/2607_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2608
Normal file
BIN
postgresql/base/1/2608
Normal file
Binary file not shown.
BIN
postgresql/base/1/2608_fsm
Normal file
BIN
postgresql/base/1/2608_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2608_vm
Normal file
BIN
postgresql/base/1/2608_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2609
Normal file
BIN
postgresql/base/1/2609
Normal file
Binary file not shown.
BIN
postgresql/base/1/2609_fsm
Normal file
BIN
postgresql/base/1/2609_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2609_vm
Normal file
BIN
postgresql/base/1/2609_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2610
Normal file
BIN
postgresql/base/1/2610
Normal file
Binary file not shown.
BIN
postgresql/base/1/2610_fsm
Normal file
BIN
postgresql/base/1/2610_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2610_vm
Normal file
BIN
postgresql/base/1/2610_vm
Normal file
Binary file not shown.
0
postgresql/base/1/2611
Normal file
0
postgresql/base/1/2611
Normal file
BIN
postgresql/base/1/2612
Normal file
BIN
postgresql/base/1/2612
Normal file
Binary file not shown.
BIN
postgresql/base/1/2612_fsm
Normal file
BIN
postgresql/base/1/2612_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2612_vm
Normal file
BIN
postgresql/base/1/2612_vm
Normal file
Binary file not shown.
0
postgresql/base/1/2613
Normal file
0
postgresql/base/1/2613
Normal file
BIN
postgresql/base/1/2615
Normal file
BIN
postgresql/base/1/2615
Normal file
Binary file not shown.
BIN
postgresql/base/1/2615_fsm
Normal file
BIN
postgresql/base/1/2615_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2615_vm
Normal file
BIN
postgresql/base/1/2615_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2616
Normal file
BIN
postgresql/base/1/2616
Normal file
Binary file not shown.
BIN
postgresql/base/1/2616_fsm
Normal file
BIN
postgresql/base/1/2616_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2616_vm
Normal file
BIN
postgresql/base/1/2616_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2617
Normal file
BIN
postgresql/base/1/2617
Normal file
Binary file not shown.
BIN
postgresql/base/1/2617_fsm
Normal file
BIN
postgresql/base/1/2617_fsm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2617_vm
Normal file
BIN
postgresql/base/1/2617_vm
Normal file
Binary file not shown.
BIN
postgresql/base/1/2618
Normal file
BIN
postgresql/base/1/2618
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user