-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
44 lines (41 loc) · 1.54 KB
/
Copy pathflake.nix
File metadata and controls
44 lines (41 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
description = "yamlfile - BuildKit frontend for intuitive, parallel, secret-aware multi-target Yamlfiles (v1alpha1)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = {
default = pkgs.hello; # placeholder; real image built via Makefile + docker buildx
};
devShells.default = pkgs.mkShell {
packages = [
pkgs.go
pkgs.gopls
pkgs.gotools
pkgs.go-tools
pkgs.golangci-lint
pkgs.revive
pkgs.hugo
pkgs.delve
pkgs.docker
pkgs.docker-buildx
pkgs.skopeo
pkgs.jq
];
shellHook = ''
echo "yamlfile dev shell (Go $(go version))"
echo "Run docker buildx from the yamlfile/ directory (or use make):"
echo " docker buildx build -f cmd/yamlfile-frontend/Dockerfile -t localhost:5000/yamlfile:dev --load ."
echo " docker buildx build -f examples/minimal.Yamlfile --build-arg BUILDKIT_SYNTAX=localhost:5000/yamlfile:dev --output type=local,dest=/tmp/out ."
echo "Or: make docker-build"
echo "Docs: make docs-serve (http://localhost:1313) — requires git submodules (docs/themes/hugo-book) and Hugo Extended 0.158+"
'';
};
});
}