"git clone" with depth=1 for OCI builds?
I'm constantly running into build failures because the "git clone" step is running super long:
...
Setting up libgssapi3-
Setting up libldap-2.4-2:amd64 (2.4.45+
Setting up libcurl3-
Setting up git (1:2.17.
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Running repo phase...
Cloning into '20.04'...
(this is from https:/
The problem is that the git repo contains tar.gz files (because there is currently no other way to build a base image - the tarball must be stored in git).
To reduce the size that is cloned, maybe "git clone depth=1" can be used so only the last commit is cloned? Would that be easily possible?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Thomas Bechtold for more information if necessary.