clearlinux / cloud-native-setup

Automation around setting up the cloud-native content (kubernetes) on Clear Linux.
Apache License 2.0
61 stars 41 forks source link

consider shallow git clone for create `get()` function #304

Open grahamwhaley opened 4 years ago

grahamwhaley commented 4 years ago

I'm wondering if it will be possible to use a shallow clone in the get function of the create_stack.sh code - right now I'm staring at quite a big download waiting for the efk to pull - and I suspect 90% of it is not needed. The code is currently:

function get_repo() {
    local repo="${1}"
    local path="${2}"
    clone_dir=$(basename "${repo}" .git)
    [[ -d "${path}/${clone_dir}" ]] || git -C "${path}" clone "${repo}"

}