forked from druidoo/docker-posbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
12.0.Dockerfile
92 lines (85 loc) · 2.41 KB
/
12.0.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
FROM druidoo/odoo:12.0-base
USER root
# Install other iotbox requirements
RUN apt-get update \
&& apt-get install -yqq --no-install-recommends \
virtualenv \
systemd \
build-essential \
libdbus-glib-1-dev \
libgirepository1.0-dev \
libcairo2-dev \
cups \
usbutils \
printer-driver-all \
cups-ipp-utils \
libcups2-dev \
iw \
openbox \
libpq-dev \
python-cups \
python3-gi \
python3-pyscard \
python3-urllib3 \
python3-dateutil \
python3-decorator \
python3-docutils \
python3-feedparser \
python3-pil \
python3-jinja2 \
python3-lxml \
python3-mako \
python3-mock \
python3-openid \
python3-psutil \
python3-psycopg2 \
python3-babel \
python3-pydot \
python3-pyparsing \
python3-pypdf2 \
python3-reportlab \
python3-requests \
python3-simplejson \
python3-tz \
python3-vatnumber \
python3-werkzeug \
python3-serial \
python3-pip \
python3-dev \
python3-dbus \
python3-netifaces \
python3-passlib \
python3-libsass \
python3-qrcode \
python3-html2text \
python3-unittest2 \
python3-simplejson \
&& rm -Rf /var/lib/apt/lists/* /tmp/* \
&& apt-get clean
# So that odoo can start cups server
RUN mkdir /var/run/cups && chown odoo:odoo /var/run/cups
# Custom entrypoints & resources
COPY resources/$ODOO_VERSION/entrypoint.d/ $RESOURCES/entrypoint.d/
COPY resources/$ODOO_VERSION/iotpatch/ $RESOURCES/iotpatch
RUN pip install --no-cache-dir \
dbus-python \
netifaces \
gatt \
pyusb==1.0.0b1 \
evdev \
gatt \
v4l2 \
polib \
pycups \
gobject \
PyGObject \
pyOpenSSL
# Install odoo with sparse-checkout (only hw_* addons)
RUN git clone --no-local --no-checkout --depth 1 --branch $ODOO_VERSION https://github.com/$ODOO_SOURCE $SOURCES/odoo && \
cd $SOURCES/odoo && \
git config core.sparsecheckout true && \
printf "/*\n!/addons/*\naddons/web\naddons/hw_*\n" | tee --append .git/info/sparse-checkout > /dev/null && \
git read-tree -mu HEAD
RUN pip install --no-cache-dir $SOURCES/odoo
# Apply patches
RUN $RESOURCES/iotpatch/apply_iotpatch.sh