Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
odoo-demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ndoumbe
odoo-demo
Commits
7364fe3d
Commit
7364fe3d
authored
Nov 20, 2022
by
Ndoumbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
f8407dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
31 deletions
+25
-31
Dockerfile
Dockerfile
+25
-31
No files found.
Dockerfile
View file @
7364fe3d
FROM
odoo:15
FROM
odoo:15
.0
USER
root
RUN
apt update
### /install some development tools
RUN
apt
install
-y
unoconv vim git
RUN
apt
install
-y
unoconv vim git watchdog locales locales-all
ENV
LC_ALL en_US.UTF-8
ENV
LANG en_US.UTF-8
ENV
LANGUAGE fr_FR.UTF-8
RUN
pip
install
cachetools
==
3.1.1
RUN
git clone https://github.com/keshrath/pdfconv.git
\
&&
chown
-R
odoo:odoo /pdfconv
\
&&
chmod
a+wr
-R
/tmp
### Install some dependencies needed by ijayo modules
# RUN pip install docxtpl
# RUN apt -y install libreoffice
# RUN pip install kafka-python
WORKDIR
/pdfconv/
### Copy custume modules addons path
COPY
./addons /mnt/extra-addons
COPY
./enterprise_addons /mnt/extra-addons
WORKDIR
/
### Create Script folder and change the owner recurcively to odoo user
RUN
mkdir
-p
/home/scripts
\
&& chown -R odoo:odoo /home/scripts
COPY
entrypoint.sh /
COPY
odoo.conf /etc/odoo/
RUN
chown
odoo /etc/odoo/odoo.conf
&&
chmod
777 /etc/odoo/odoo.conf
RUN
chown
odoo entrypoint.sh
&&
chmod
777 entrypoint.sh
### Copy Script folder
COPY
./scripts /home/scripts
#Setup odoo log directory
RUN
mkdir
-p
/var/log/odoo
&&
chown
-R
odoo /var/log/odoo
RUN
mkdir
-p
/mnt/tai
&&
chown
-R
odoo /mnt/tai
### Create data folder for persistant volume
RUN
mkdir
-p
/home/data
\
&&
chown
-R
odoo:odoo /home/data
#Setup directory for odoo attachements
RUN
mkdir
/home/odoo_filestore
&&
chmod
-R
777 /home/odoo_filestore
### Copy the edited entrypoint
COPY
./entrypoint.sh /
VOLUME
["/var/log/odoo", "/home/odoo_filestore"]
### Copy the edited odoo.conf
COPY
./config/odoo.conf /etc/odoo/
COPY
jta_interprise /mnt/ jta_interprise
#COPY web_auth_signup /mnt/web_auth_signup
#COPY web_portal /mnt/web_portal
### Edit permision on entrypoint.sh
RUN
chown
odoo /entrypoint.sh
\
&&
chmod
777 /entrypoint.sh
### Edit permision on odoo.conf
RUN
chown
odoo /etc/odoo/odoo.conf
### Change user to odoo
USER
odoo
\ No newline at end of file
USER
odoo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment