Skip to content

Commit 9de70e9

Browse files
authored
Install OCA addons from GitHub in Dockerfile
Add commands to fetch and install OCA addons from GitHub.
1 parent 6b07741 commit 9de70e9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,17 @@ ENV EXCLUDE=
187187
ENV OCA_GIT_USER_NAME=sgrunbot
188188
ENV OCA_GIT_USER_EMAIL=sgrunbot@adm.steingabelgaard.dk
189189
ENV OCA_ENABLE_CHECKLOG_ODOO=
190+
191+
# Install commonly used OCA addons
192+
ADD https://api.github.com/repos/steingabelgaard/odoo/git/refs/heads/$odoo_version /tmp/branch.json
193+
194+
# Use the commit SHA from JSON to download exact requirements.txt
195+
RUN SHA=$(jq -r .object.sha /tmp/branch.json) \
196+
&& curl -sSL "https://raw.githubusercontent.com/steingabelgaard/odoo/${SHA}/oca-addons.txt" \
197+
-o /tmp/oca-addons-requirements.txt
198+
# The sed command is to use the latest version of gevent and greenlet. The
199+
# latest version works with all versions of Odoo that we support here, and the
200+
# oldest pinned in Odoo's requirements.txt don't have wheels, and don't build
201+
# anymore with the latest cython.
202+
RUN pip install --no-cache-dir \
203+
-r /tmp/oca-addons-requirements.txt \

0 commit comments

Comments
 (0)