Skip to content

Commit a0ef185

Browse files
committed
support for v19 and add 18 template
1 parent 340b964 commit a0ef185

File tree

5 files changed

+236
-0
lines changed

5 files changed

+236
-0
lines changed

copier.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ project_name:
2323
branch_name:
2424
type: str
2525
choices:
26+
- "19.0"
2627
- "18.0"
2728
- "17.0"
2829
- "16.0"
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
declare -x ADDONS_PATH="${ADDONS_PATH:-}"
2+
declare -x DB_TEMPLATE="${DB_TEMPLATE:-template1}"
3+
declare -x DB_HOST="${DB_HOST:-}"
4+
declare -x DB_PORT="${DB_PORT:-5432}"
5+
declare -x DB_REPLICA_HOST="${DB_REPLICA_HOST:-False}"
6+
declare -x DB_REPLICA_PORT="${DB_REPLICA_PORT:-False}"
7+
declare -x DB_NAME="${DB_NAME:-}"
8+
declare -x DB_USER="${DB_USER:-}"
9+
declare -x DB_PASSWORD="${DB_PASSWORD:-}"
10+
declare -x DB_SSLMODE="${DB_SSLMODE:-prefer}"
11+
declare -x DB_FILTER="${DB_FILTER:-^(${DB_NAME//,/|})$}"
12+
declare -x LIST_DB="${LIST_DB:-False}"
13+
declare -x ADMIN_PASSWD="${ADMIN_PASSWD:-}"
14+
declare -x DB_MAXCONN="${DB_MAXCONN:-64}"
15+
declare -x DB_MAXCONN_GEVENT="${DB_MAXCONN_GEVENT:-False}"
16+
declare -x LIMIT_MEMORY_SOFT="${LIMIT_MEMORY_SOFT:-2147483648}"
17+
declare -x LIMIT_MEMORY_SOFT_GEVENT="${LIMIT_MEMORY_SOFT_GEVENT:-False}"
18+
declare -x LIMIT_MEMORY_HARD="${LIMIT_MEMORY_HARD:-2684354560}"
19+
declare -x LIMIT_MEMORY_HARD_GEVENT="${LIMIT_MEMORY_HARD_GEVENT:-False}"
20+
declare -x LIMIT_REQUEST="${LIMIT_REQUEST:-8192}"
21+
declare -x LIMIT_TIME_CPU="${LIMIT_TIME_CPU:-60}"
22+
declare -x LIMIT_TIME_REAL="${LIMIT_TIME_REAL:-120}"
23+
declare -x LIMIT_TIME_REAL_CRON="${LIMIT_TIME_REAL_CRON:-120}"
24+
declare -x LOG_HANDLER="${LOG_HANDLER:-':INFO'}"
25+
declare -x LOG_LEVEL="${LOG_LEVEL:-info}"
26+
declare -x MAX_CRON_THREADS="${MAX_CRON_THREADS:-2}"
27+
declare -x WORKERS="${WORKERS:-4}"
28+
declare -x LOGFILE="${LOGFILE:-None}"
29+
declare -x LOG_DB="${LOG_DB:-False}"
30+
declare -x SYSLOG="${SYSLOG:-False}"
31+
declare -x RUNNING_ENV="${RUNNING_ENV:-dev}"
32+
declare -x WITHOUT_DEMO="${WITHOUT_DEMO:-True}"
33+
declare -x SERVER_WIDE_MODULES="${SERVER_WIDE_MODULES:-}"
34+
declare -x UNACCENT="${UNACCENT:-False}"
35+
declare -x ADDITIONAL_ODOO_RC="${ADDITIONAL_ODOO_RC:-}"
36+
# diff with upstream
37+
# we don't use PG vars because they should be explicitely
38+
# defined in docker compose files
39+
# the entrypoint is not run by docker exec
40+
#declare -x PGHOST=${DB_HOST}
41+
#declare -x PGPORT=${DB_PORT:-5432}
42+
#declare -x PGUSER=${DB_USER}
43+
#declare -x PGPASSWORD=${DB_PASSWORD}
44+
#declare -x PGDATABASE=${DB_NAME}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[options]
2+
addons_path = ${ADDONS_PATH}
3+
data_dir = /data/odoo
4+
auto_reload = False
5+
db_template = ${DB_TEMPLATE}
6+
db_host = ${DB_HOST}
7+
db_port = ${DB_PORT}
8+
db_name = ${DB_NAME}
9+
db_user = ${DB_USER}
10+
db_password = ${DB_PASSWORD}
11+
db_sslmode = ${DB_SSLMODE}
12+
dbfilter = ${DB_FILTER}
13+
list_db = ${LIST_DB}
14+
admin_passwd = ${ADMIN_PASSWD}
15+
db_maxconn = ${DB_MAXCONN}
16+
limit_memory_soft = ${LIMIT_MEMORY_SOFT}
17+
limit_memory_hard = ${LIMIT_MEMORY_HARD}
18+
limit_request = ${LIMIT_REQUEST}
19+
limit_time_cpu = ${LIMIT_TIME_CPU}
20+
limit_time_real = ${LIMIT_TIME_REAL}
21+
limit_time_real_cron = ${LIMIT_TIME_REAL_CRON}
22+
log_handler = ${LOG_HANDLER}
23+
log_level = ${LOG_LEVEL}
24+
max_cron_threads = ${MAX_CRON_THREADS}
25+
workers = ${WORKERS}
26+
logfile = ${LOGFILE}
27+
log_db = ${LOG_DB}
28+
logrotate = True
29+
syslog = ${SYSLOG}
30+
running_env = ${RUNNING_ENV}
31+
without_demo = ${WITHOUT_DEMO}
32+
server_wide_modules = ${SERVER_WIDE_MODULES}
33+
; We can activate proxy_mode even if we are not behind a proxy, because
34+
; it is used only if HTTP_X_FORWARDED_HOST is set in environ
35+
proxy_mode = True
36+
; csv_internal_sep = ,
37+
; debug_mode = False
38+
; email_from = False
39+
; http_port = 8069
40+
; http_enable = True
41+
; http_interface =
42+
; gevent_port = 8072
43+
; osv_memory_age_limit = 1.0
44+
; osv_memory_count_limit = False
45+
; smtp_password = False
46+
; smtp_port = 25
47+
; smtp_server = localhost
48+
; smtp_ssl = False
49+
; smtp_user = False
50+
unaccent = ${UNACCENT}
51+
52+
sentry_enabled = ${SENTRY}
53+
sentry_environment = ${RUNNING_ENV}
54+
sentry_dsn = ${SENTRY_DSN}
55+
sentry_release = ${SENTRY_RELEASE}
56+
sentry_traces_sample_rate = ${SENTRY_TRACES_SAMPLE_RATE}
57+
58+
encryption_key_dev=${ENCRYPTION_KEY_DEV}
59+
encryption_key_ci=${ENCRYPTION_KEY_CI}
60+
encryption_key_prod=${ENCRYPTION_KEY_PROD}
61+
${ADDITIONAL_ODOO_RC}
62+
63+
64+
[auth_oauth_provider.Akretion]
65+
client_id=${AUTH_OAUTH_PROVIDER_CLIENT_ID}
66+
client_secret=${AUTH_OAUTH_PROVIDER_CLIENT_SECRET}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
declare -x ADDONS_PATH="${ADDONS_PATH:-}"
2+
declare -x DB_TEMPLATE="${DB_TEMPLATE:-template1}"
3+
declare -x DB_HOST="${DB_HOST:-}"
4+
declare -x DB_PORT="${DB_PORT:-5432}"
5+
declare -x DB_REPLICA_HOST="${DB_REPLICA_HOST:-None}"
6+
declare -x DB_REPLICA_PORT="${DB_REPLICA_PORT:-None}"
7+
declare -x DB_NAME="${DB_NAME:-}"
8+
declare -x DB_USER="${DB_USER:-}"
9+
declare -x DB_PASSWORD="${DB_PASSWORD:-}"
10+
declare -x DB_SSLMODE="${DB_SSLMODE:-prefer}"
11+
declare -x DB_FILTER="${DB_FILTER:-^(${DB_NAME//,/|})$}"
12+
declare -x LIST_DB="${LIST_DB:-False}"
13+
declare -x ADMIN_PASSWD="${ADMIN_PASSWD:-}"
14+
declare -x DB_MAXCONN="${DB_MAXCONN:-64}"
15+
declare -x DB_MAXCONN_GEVENT="${DB_MAXCONN_GEVENT:-None}"
16+
declare -x LIMIT_MEMORY_SOFT="${LIMIT_MEMORY_SOFT:-2147483648}"
17+
declare -x LIMIT_MEMORY_SOFT_GEVENT="${LIMIT_MEMORY_SOFT_GEVENT:-None}"
18+
declare -x LIMIT_MEMORY_HARD="${LIMIT_MEMORY_HARD:-2684354560}"
19+
declare -x LIMIT_MEMORY_HARD_GEVENT="${LIMIT_MEMORY_HARD_GEVENT:-None}"
20+
declare -x LIMIT_REQUEST="${LIMIT_REQUEST:-8192}"
21+
declare -x LIMIT_TIME_CPU="${LIMIT_TIME_CPU:-60}"
22+
declare -x LIMIT_TIME_REAL="${LIMIT_TIME_REAL:-120}"
23+
declare -x LIMIT_TIME_REAL_CRON="${LIMIT_TIME_REAL_CRON:-120}"
24+
declare -x LOG_HANDLER="${LOG_HANDLER:-':INFO'}"
25+
declare -x LOG_LEVEL="${LOG_LEVEL:-info}"
26+
declare -x MAX_CRON_THREADS="${MAX_CRON_THREADS:-2}"
27+
declare -x WORKERS="${WORKERS:-4}"
28+
declare -x LOGFILE="${LOGFILE:-None}"
29+
declare -x LOG_DB="${LOG_DB:-}"
30+
declare -x SYSLOG="${SYSLOG:-False}"
31+
declare -x RUNNING_ENV="${RUNNING_ENV:-dev}"
32+
if [ ! -z "${WITH_DEMO:-}" ]; then
33+
declare -x WITH_DEMO="${WITH_DEMO}"
34+
elif [ ! -z "${WITHOUT_DEMO:-}" ]; then
35+
# Fallback to WITHOUT_DEMO
36+
# But inversing the logic
37+
if [ "${WITHOUT_DEMO}" == "False" ]; then
38+
declare -x WITH_DEMO="True"
39+
else
40+
declare -x WITH_DEMO="False"
41+
fi
42+
else
43+
# nothing is set -> Default value
44+
declare -x WITH_DEMO="False"
45+
fi
46+
declare -x SERVER_WIDE_MODULES="${SERVER_WIDE_MODULES:-}"
47+
declare -x UNACCENT="${UNACCENT:-False}"
48+
declare -x ADDITIONAL_ODOO_RC="${ADDITIONAL_ODOO_RC:-}"
49+
# diff with upstream
50+
# we don't use PG vars because they should be explicitely
51+
# defined in docker compose files
52+
# the entrypoint is not run by docker exec
53+
#declare -x PGHOST=${DB_HOST}
54+
#declare -x PGPORT=${DB_PORT:-5432}
55+
#declare -x PGUSER=${DB_USER}
56+
#declare -x PGPASSWORD=${DB_PASSWORD}
57+
#declare -x PGDATABASE=${DB_NAME}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[options]
2+
addons_path = ${ADDONS_PATH}
3+
data_dir = /data/odoo
4+
db_template = ${DB_TEMPLATE}
5+
db_host = ${DB_HOST}
6+
db_port = ${DB_PORT}
7+
db_replica_host = ${DB_REPLICA_HOST}
8+
db_replica_port = ${DB_REPLICA_PORT}
9+
db_name = ${DB_NAME}
10+
db_user = ${DB_USER}
11+
db_password = ${DB_PASSWORD}
12+
db_sslmode = ${DB_SSLMODE}
13+
dbfilter = ${DB_FILTER}
14+
list_db = ${LIST_DB}
15+
admin_passwd = ${ADMIN_PASSWD}
16+
db_maxconn = ${DB_MAXCONN}
17+
db_maxconn_gevent = ${DB_MAXCONN_GEVENT}
18+
limit_memory_soft = ${LIMIT_MEMORY_SOFT}
19+
limit_memory_soft_gevent = ${LIMIT_MEMORY_SOFT_GEVENT}
20+
limit_memory_hard = ${LIMIT_MEMORY_HARD}
21+
limit_memory_hard_gevent = ${LIMIT_MEMORY_HARD_GEVENT}
22+
limit_request = ${LIMIT_REQUEST}
23+
limit_time_cpu = ${LIMIT_TIME_CPU}
24+
limit_time_real = ${LIMIT_TIME_REAL}
25+
limit_time_real_cron = ${LIMIT_TIME_REAL_CRON}
26+
log_handler = ${LOG_HANDLER}
27+
log_level = ${LOG_LEVEL}
28+
max_cron_threads = ${MAX_CRON_THREADS}
29+
workers = ${WORKERS}
30+
logfile = ${LOGFILE}
31+
log_db = ${LOG_DB}
32+
syslog = ${SYSLOG}
33+
with_demo = ${WITH_DEMO}
34+
server_wide_modules = ${SERVER_WIDE_MODULES}
35+
; We can activate proxy_mode even if we are not behind a proxy, because
36+
; it is used only if HTTP_X_FORWARDED_HOST is set in environ
37+
proxy_mode = True
38+
; csv_internal_sep = ,
39+
; debug_mode = False
40+
; email_from = False
41+
; http_port = 8069
42+
; http_enable = True
43+
http_interface = 0.0.0.0
44+
; gevent_port = 8072
45+
; osv_memory_age_limit = 1.0
46+
; osv_memory_count_limit = False
47+
; smtp_password = False
48+
; smtp_port = 25
49+
; smtp_server = localhost
50+
; smtp_ssl = False
51+
; smtp_user = False
52+
unaccent = ${UNACCENT}
53+
54+
sentry_enabled = ${SENTRY}
55+
sentry_environment = ${RUNNING_ENV}
56+
sentry_dsn = ${SENTRY_DSN}
57+
sentry_release = ${SENTRY_RELEASE}
58+
sentry_traces_sample_rate = ${SENTRY_TRACES_SAMPLE_RATE}
59+
60+
encryption_key_dev=${ENCRYPTION_KEY_DEV}
61+
encryption_key_ci=${ENCRYPTION_KEY_CI}
62+
encryption_key_prod=${ENCRYPTION_KEY_PROD}
63+
${ADDITIONAL_ODOO_RC}
64+
65+
66+
[auth_oauth_provider.Akretion]
67+
client_id=${AUTH_OAUTH_PROVIDER_CLIENT_ID}
68+
client_secret=${AUTH_OAUTH_PROVIDER_CLIENT_SECRET}

0 commit comments

Comments
 (0)