Browse Source

script de construction minimal

jules 3 years ago
parent
commit
f529d21967
3 changed files with 10 additions and 57 deletions
  1. 4
    0
      dockerfile/14.0/build.sh
  2. 6
    5
      dockerfile/14.0/odoo.conf
  3. 0
    52
      init.sh

+ 4
- 0
dockerfile/14.0/build.sh View File

@@ -0,0 +1,4 @@
1
+#!/bin/sh
2
+docker build -t odoo-susan .
3
+docker-compose exec odoo python3 /opt/odoo/odoo/odoo-bin -c /opt/odoo/etc/odoo.conf --db_host db --db_port 5432 --db_user odoo --db_password leMotDePasse --init base --stop-after-init --no-http --without-demo=all
4
+docker-compose --verbose up -d odoo

+ 6
- 5
dockerfile/14.0/odoo.conf View File

@@ -1,10 +1,10 @@
1 1
 [options]
2
-addons_path = /mnt/extra-addons
3
-data_dir = /var/lib/odoo
2
+addons_path = /opt/odoo/odoo/addons,/opt/odoo/additional_addons,/opt/odoo/private_addons
3
+data_dir = /opt/odoo/data
4 4
 ; admin_passwd = admin
5 5
 ; csv_internal_sep = ,
6 6
 ; db_maxconn = 64
7
-; db_name = False
7
+db_name = odoo
8 8
 ; db_template = template1
9 9
 ; dbfilter = .*
10 10
 ; debug_mode = False
@@ -28,10 +28,11 @@ data_dir = /var/lib/odoo
28 28
 ; smtp_server = localhost
29 29
 ; smtp_ssl = False
30 30
 ; smtp_user = False
31
+unaccent = True
31 32
 ; workers = 0
32 33
 ; xmlrpc = True
33
-; xmlrpc_interface = 
34
+; xmlrpc_interface =
34 35
 ; xmlrpc_port = 8069
35 36
 ; xmlrpcs = True
36
-; xmlrpcs_interface = 
37
+; xmlrpcs_interface =
37 38
 ; xmlrpcs_port = 8071

+ 0
- 52
init.sh View File

@@ -1,52 +0,0 @@
1
-echo "Déploiement de Odoo"
2
-echo "Installation des dépendances"
3
-apt update && apt dist-upgrade
4
-sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release docker docker-compose
5
-echo "Configuration du docker"
6
-read -p "Mot de passe de la base de données : " mdp
7
-read -p "Port : " port
8
-echo "version: \"2.1\"
9
-services:
10
-    odoo:
11
-        image: lefilament/odoo:14.0
12
-        container_name: odoo14
13
-        depends_on:
14
-            - db
15
-        tty: true
16
-        ports:
17
-            - $port:$port
18
-        volumes:
19
-            - filestore:/opt/odoo/data:z
20
-        restart: unless-stopped
21
-        command:
22
-            - odoo
23
-
24
-    db:
25
-        image: postgres:13-alpine
26
-        container_name: odoo14_db
27
-        environment:
28
-            POSTGRES_USER: \"odoo\"
29
-            POSTGRES_PASSWORD: \"$mdp\"
30
-        volumes:
31
-            - db:/var/lib/postgresql/data:z
32
-        restart: unless-stopped
33
-
34
-networks:
35
-    default:
36
-        driver_opts:
37
-            encrypted: 1
38
-
39
-volumes:
40
-    filestore:
41
-    db:
42
-
43
-"> docker-compose.yml
44
-
45
-#docker-compose up -d db
46
-#docker-compose up -d odoo
47
-
48
-#docker-compose exec odoo python3 /opt/odoo/odoo/odoo-bin -c /opt/odoo/etc/odoo.conf --db_host db --db_port 5432 --db_user odoo --db_password LeVraiMotDePasse --init base --stop-after-init --no-http --without-demo=all
49
-
50
-#docker-compose exec -u root odoo apt update
51
-#docker-compose exec -u root odoo apt install git -y
52
-

Loading…
Cancel
Save