this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf(controller): switch back to backed in dependecies

Running nix develop every time is a little slow, may revisit later.

Khue Doan 4e72cb46 dcc6c5c5

+10 -4
+7
controller/Dockerfile
··· 14 14 15 15 RUN echo "experimental-features = flakes nix-command" >> /etc/nix/nix.conf 16 16 17 + # TODO use native nix develop, currently it's a bit slow 18 + RUN nix-env --install --quiet --attr \ 19 + nixpkgs.kubernetes-helm \ 20 + nixpkgs.opentofu \ 21 + nixpkgs.oras \ 22 + nixpkgs.terragrunt 23 + 17 24 COPY --from=builder /bin/worker /bin/worker 18 25 19 26 CMD ["/bin/worker"]
+1 -2
controller/activities/oci.go
··· 25 25 26 26 func PushManifests(ctx context.Context, path string, image string) (*PushResult, error) { 27 27 logger := activity.GetLogger(ctx) 28 - cmd := exec.CommandContext(ctx, "nix", "develop", "--command", "oras", "push", "--format=json", "--plain-http", image, ".") 28 + cmd := exec.CommandContext(ctx, "oras", "push", "--format=json", "--plain-http", image, ".") 29 29 cmd.Dir = path 30 30 31 31 var stdout, stderr bytes.Buffer ··· 58 58 59 59 cmd := exec.CommandContext( 60 60 ctx, 61 - "nix", "develop", "--command", 62 61 "helm", "template", "--namespace", namespace, app, "oci://ghcr.io/bjw-s-labs/helm/app-template:4.1.1", "--values", path.Join(namespace, app, cluster+".yaml"), "--output-dir", tmpDir, 63 62 ) 64 63 cmd.Dir = appsPath
+2 -2
controller/activities/terragrunt.go
··· 13 13 ) 14 14 15 15 func TerragruntGraph(ctx context.Context, path string) (*Graph, error) { 16 - cmd := exec.CommandContext(ctx, "nix", "develop", "--command", "terragrunt", "dag", "graph") 16 + cmd := exec.CommandContext(ctx, "terragrunt", "dag", "graph") 17 17 cmd.Dir = path 18 18 output, err := cmd.Output() 19 19 if err != nil { ··· 38 38 39 39 fullPath := filepath.Join(repoPath, "infra", stack, modulePath) 40 40 41 - cmd := exec.CommandContext(ctx, "nix", "develop", "--command", "terragrunt", "apply", "--backend-bootstrap", "--auto-approve") 41 + cmd := exec.CommandContext(ctx, "terragrunt", "apply", "--backend-bootstrap", "--auto-approve") 42 42 cmd.Dir = fullPath 43 43 44 44 // Create pipes to capture output and send heartbeats