fix(cgit-taz): Force gcloud to use specific CA bundle

It doesn't like reading the bundle from /etc/ssl apparently.
This commit is contained in:
Vincent Ambo 2019-12-18 21:37:48 +00:00
parent ce55786ffe
commit 96794d8630

View file

@ -54,6 +54,9 @@ let
patches = [ ./cgit_idx.patch thttpdConfigPatch ];
});
in writeShellScriptBin "cgit-launch" ''
# v0v
gcloud config set core/custom_ca_certs_file ${cacert}/etc/ssl/certs/ca-bundle.crt
# The role account that this container is running at in Kubernetes
# has permission to clone the repository.
${google-cloud-sdk}/bin/gcloud source repos --project tazjins-infrastructure clone depot /git/depot