What does your reference repo contain? Is the content going to be used for
the build?

Ram

On Tue, 11 May 2021 at 9:37 AM, HUSSEIN KADIRI <[email protected]> wrote:

> I have elastic agents so the cron route would not be feasible.
>
> I mount a reference repo as a K8s PVC.
>
> I want to do a git clone <url> --reference-repo <path to my mounted
> reference repo>.
>
> Can the git material support or be modified to accept reference repo
> paths?
>
> This is kind of a deal breaker if it can't
>
>
> On Mon, May 10, 2021, 6:31 PM Marques Lee <[email protected]>
> wrote:
>
>> Hmm. Well I suppose you could git clone —bare —mirror to a known location
>> and then:
>>
>> 1) create git materials with file system paths for the url instead of
>> http/ssh
>> 2) run a cron to keep the ref repo updated
>>
>> Would that work?
>> On Mon, May 10, 2021 at 6:25 PM HUSSEIN KADIRI <[email protected]>
>> wrote:
>>
>>> My repo is too big, it can't be cloned by itself. it needs a reference
>>> repo.
>>>
>>> Is there a way to configure a reference repo ?
>>>
>>> On Mon, May 10, 2021, 6:23 PM Marques Lee <[email protected]>
>>> wrote:
>>>
>>>> Git materials support shallow clone. I think you need to expand the
>>>> advance tab to see the option. It’s of course in cruise-config.xml as well
>>>> as the various pipelines-as-config syntaxes.
>>>>
>>>> The workspace isn’t recloned every time either. If it exists on disk,
>>>> it gets updated via fetch.
>>>>
>>>> On Mon, May 10, 2021 at 4:29 PM HUSSEIN KADIRI <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>> Sometimes a git repo is large and so it's not efficient/fast to do a
>>>>> git clone. One would have to use a reference repo. For all the parts that
>>>>> require git (config repository, git material, etc), is it possible to have
>>>>> more complex git workflows - utilizing a reference repo, shallow clone -
>>>>> since a simple git clone is not always possible?
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "go-cd" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/go-cd/CAFD%2B7Dm2Ah3rAMzkt8j9pM_LoAKOn%3DgK0KMqNW-7dm8FuQOpyA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/go-cd/CAFD%2B7Dm2Ah3rAMzkt8j9pM_LoAKOn%3DgK0KMqNW-7dm8FuQOpyA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>>
>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "go-cd" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/go-cd/wEK4-BYReb8/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/go-cd/CAPKX9jatvS8kBrhek9meEdOJpus6Hb%2BpLBnWjcxNoQK97FXn7A%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/go-cd/CAPKX9jatvS8kBrhek9meEdOJpus6Hb%2BpLBnWjcxNoQK97FXn7A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "go-cd" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/go-cd/CAFD%2B7DnZo77QzutmB1SwUHw%2B2sGC5JNjXVkWWyXGFzTn7OQdzg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/go-cd/CAFD%2B7DnZo77QzutmB1SwUHw%2B2sGC5JNjXVkWWyXGFzTn7OQdzg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "go-cd" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/go-cd/wEK4-BYReb8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/CAPKX9jZas%2BPcdOZ855o1ZgpRoi0J0X4%3DnWMXC%3DBg9GjzAwwb-A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/go-cd/CAPKX9jZas%2BPcdOZ855o1ZgpRoi0J0X4%3DnWMXC%3DBg9GjzAwwb-A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAFD%2B7Dn%2BDPphBOumaogyhuPSObpi4t1Ji2TgBFjTzEQ7M2qq6w%40mail.gmail.com
> <https://groups.google.com/d/msgid/go-cd/CAFD%2B7Dn%2BDPphBOumaogyhuPSObpi4t1Ji2TgBFjTzEQ7M2qq6w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CANiY96YqGZS1wdd9LMgX1s6V42V2JXHUsY5mjqfMSyyVJRDWdg%40mail.gmail.com.

Reply via email to