Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,10 @@ ARG odoo_version

# Install Odoo requirements (use ADD for correct layer caching).
# We use requirements from OCB for easier maintenance of older versions.
ADD https://api.github.com/repos/OCA/OCB/git/refs/heads/$odoo_version /tmp/branch.json
ADD https://api.github.com/repos/OCA/OCB/contents/requirements.txt?ref=$odoo_version /tmp/requirements_content.json

# Use the commit SHA from JSON to download exact requirements.txt
RUN SHA=$(jq -r .object.sha /tmp/branch.json) \
&& curl -sSL "https://raw.githubusercontent.com/OCA/OCB/${SHA}/requirements.txt" \
-o /tmp/ocb-requirements.txt
# Use the content from the file downloaded
RUN jq -r .content /tmp/requirements_content.json | base64 -d > /tmp/ocb-requirements.txt
# The sed command is to use the latest version of gevent and greenlet. The
# latest version works with all versions of Odoo that we support here, and the
# oldest pinned in Odoo's requirements.txt don't have wheels, and don't build
Expand Down
8 changes: 3 additions & 5 deletions Dockerfile-legacypy
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@ ARG odoo_version

# Install Odoo requirements (use ADD for correct layer caching).
# We use requirements from OCB for easier maintenance of older versions.
ADD https://api.github.com/repos/OCA/OCB/git/refs/heads/$odoo_version /tmp/branch.json
ADD https://api.github.com/repos/OCA/OCB/contents/requirements.txt?ref=$odoo_version /tmp/requirements_content.json

# Use the commit SHA from JSON to download exact requirements.txt
RUN SHA=$(jq -r .object.sha /tmp/branch.json) \
&& curl -sSL "https://raw.githubusercontent.com/OCA/OCB/${SHA}/requirements.txt" \
-o /tmp/ocb-requirements.txt
# Use the content from the file downloaded
RUN jq -r .content /tmp/requirements_content.json | base64 -d > /tmp/ocb-requirements.txt
# The sed command is to use the latest version of gevent and greenlet. The
# latest version works with all versions of Odoo that we support here, and the
# oldest pinned in Odoo's requirements.txt don't have wheels, and don't build
Expand Down
Loading