Skip to content

Commit

Permalink
proper double odoo and OCB object refs
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Aug 16, 2023
1 parent ce72a02 commit a45c95c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 14.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ COPY bin/* /usr/local/bin/
COPY install/* /install/

# pre-fetch the git-autoshare cache with the bare minimum:
# (yes we could divide the size of this image by 2 if we force the OCB base branch)
ADD https://api.github.com/repos/odoo/odoo/git/refs/heads/14.0 version.json
RUN mkdir -p /root/.cache/git-autoshare/github.com/odoo && \
cd /root/.cache/git-autoshare/github.com/odoo && \
/usr/bin/git init --bare && \
/usr/bin/git fetch https://github.com/OCA/OCB.git refs/heads/14.0:refs/git-autoshare/oca/heads/14.0 --shallow-since=2020-10-01 && \
/usr/bin/git fetch https://github.com/odoo/odoo.git refs/heads/14.0:refs/git-autoshare/odoo/heads/14.0 --shallow-since=2020-10-01
/usr/bin/git fetch https://github.com/odoo/odoo.git refs/heads/14.0:refs/git-autoshare/odoo/heads/14.0 --shallow-since=2020-10-01 && \
mkdir -p /root/.cache/git-autoshare/github.com/ocb && \
cd /root/.cache/git-autoshare/github.com/ocb && \
/usr/bin/git init --bare && \
/usr/bin/git fetch https://github.com/OCA/OCB.git refs/heads/14.0:refs/git-autoshare/oca/heads/14.0 --shallow-since=2020-10-01

0 comments on commit a45c95c

Please sign in to comment.