ThePorgs / Exegol-images

Docker images of the Exegol project
https://exegol.readthedocs.io/
GNU General Public License v3.0
73 stars 56 forks source link

Reduce image size by adding flag depth 1 when git cloning #333

Closed gbe closed 2 months ago

gbe commented 2 months ago

I noticed that some tools missed the flag --depth 1 for git clone.

For some tools, it was simply forgotten.

For others, the flag --depth 1 was removed for temp fixes reasons. This PR reinstates the depth flag to clone directly the appropriate branch in a single command instead of doing a git clone followed by a git checkout:

About sliver, I moved the temp fix criticalecho at the beginning of the function to only clone the repo if the date condition is met. I hope it's ok like this.

QU35T-code commented 2 months ago

It may be a deliberate "miss". I have to check if it works even if we add depth 1

QU35T-code commented 2 months ago

Let’s see what the runners think 😄

QU35T-code commented 2 months ago

Hey @gbe,

Can you push a commit to sync the pipeline ?

gbe commented 2 months ago

Done

QU35T-code commented 2 months ago

Pipeline is ok ☑️