about summary refs log tree commit diff
path: root/services/cgit-taz/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-18T21·37+0000
committerVincent Ambo <tazjin@google.com>2019-12-18T21·37+0000
commit96794d86300129a40655a19e4dd1402eb15e123f (patch)
treedaea427b2cf35ce4e6d04cb098074cb6f60feeb7 /services/cgit-taz/default.nix
parentce55786ffeed740ca53d2f77b7e5fce92fe8ea78 (diff)
fix(cgit-taz): Force gcloud to use specific CA bundle r/196
It doesn't like reading the bundle from /etc/ssl apparently.
Diffstat (limited to 'services/cgit-taz/default.nix')
-rw-r--r--services/cgit-taz/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix
index 94fd6fe5f445..5fce2f2aab5a 100644
--- a/services/cgit-taz/default.nix
+++ b/services/cgit-taz/default.nix
@@ -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