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 fbddd4d
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:
# (git-autoshare reference cannot be shallow at all sadly)
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 && \
ln -s /root/.cache/git-autoshare/github.com/odoo root/.cache/git-autoshare/github.com/ocb && \
cd /root/.cache/git-autoshare/github.com/ocb && \
/usr/bin/git remote add oca https://github.com/OCA/OCB.git && \
/usr/bin/git fetch oca refs/heads/14.0:refs/git-autoshare/ocb/heads/14.0

0 comments on commit fbddd4d

Please sign in to comment.