File tree Expand file tree Collapse file tree 5 files changed +48
-3
lines changed Expand file tree Collapse file tree 5 files changed +48
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,19 @@ See [upstream documentation](https://cluster-api.sigs.k8s.io/tasks/experimental-
11
11
12
12
## Development
13
13
14
+ Export Docker hub credentials to prevent rate-limited by DockerHub
15
+
16
+ ``` shell
17
+ export DOCKER_HUB_USERNAME=< DOCKER_HUB_USERNAME>
18
+ export DOCKER_HUB_PASSWORD=< DOCKER_HUB_TOKEN>
19
+ ```
20
+
21
+ Install [ devbox] ( https://www.jetpack.io/devbox ) and development tools
22
+
23
+ ``` shell
24
+ make devbox
25
+ ```
26
+
14
27
To deploy a local build, either initial install to update an existing deployment, run:
15
28
16
29
``` shell
Original file line number Diff line number Diff line change 33
33
" yamllint@latest" ,
34
34
" path:./hack/flakes#go-mod-upgrade" ,
35
35
" path:./hack/flakes#golangci-lint" ,
36
- " path:./hack/flakes#setup-envtest"
36
+ " path:./hack/flakes#setup-envtest" ,
37
+ " colima@latest"
37
38
],
38
39
"shell" : {
39
40
"scripts" : {
Original file line number Diff line number Diff line change 61
61
}
62
62
}
63
63
},
64
+ "colima@latest": {
65
+ "last_modified": "2023-12-31T07:44:09Z",
66
+ "resolved": "github:NixOS/nixpkgs/d44d59d2b5bd694cd9d996fd8c51d03e3e9ba7f7#colima",
67
+ "source": "devbox-search",
68
+ "version": "0.6.7",
69
+ "systems": {
70
+ "aarch64-darwin": {
71
+ "store_path": "/nix/store/r05liknck7104c58m4gbg10afdi23jlc-colima-0.6.7"
72
+ },
73
+ "aarch64-linux": {
74
+ "store_path": "/nix/store/vjrqn84rgnc9fsfwpv7np1klv33xkr6y-colima-0.6.7"
75
+ },
76
+ "x86_64-linux": {
77
+ "store_path": "/nix/store/gkckwqfv6dpynvg7dcgw1f6vcpirkd2g-colima-0.6.7"
78
+ }
79
+ }
80
+ },
64
81
"coreutils@latest": {
65
82
"last_modified": "2023-12-13T22:54:10Z",
66
83
"resolved": "github:NixOS/nixpkgs/fd04bea4cbf76f86f244b9e2549fca066db8ddff#coreutils",
Original file line number Diff line number Diff line change 3
3
4
4
ADDONS_PROVIDER := ClusterResourceSet
5
5
6
+ .PHONY : devbox
7
+ devbox : /usr/local/bin/devbox
8
+ /usr/local/bin/devbox install
9
+ devbox shell
10
+
11
+ /usr/local/bin/devbox :
12
+ curl -fsSL https://get.jetpack.io/devbox | bash
13
+
14
+ .PHONY : colima.start
15
+ colima.start :
16
+ colima start --arch $(shell uname -m)
17
+
6
18
.PHONY : dev.run-on-kind
7
19
dev.run-on-kind : export KUBECONFIG := $(KIND_KUBECONFIG )
8
- dev.run-on-kind : kind.create clusterctl.init
20
+ dev.run-on-kind : export DOCKER_HOST := unix://$(HOME ) /.colima/default/docker.sock
21
+ dev.run-on-kind : colima.start kind.create clusterctl.init
9
22
ifndef SKIP_BUILD
10
23
$(MAKE) release-snapshot
11
24
endif
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ release: dockerauth go-generate ; $(info $(M) building release $*)
31
31
32
32
.PHONY : release-snapshot
33
33
release-snapshot : # # Builds a snapshot release with goreleaser
34
- release-snapshot : dockerauth go-generate ; $(info $(M ) building snapshot release $* )
34
+ release-snapshot : export DOCKER_HOST := unix://$(HOME ) /.colima/default/docker.sock
35
+ release-snapshot : colima.start dockerauth go-generate ; $(info $(M ) building snapshot release $* )
35
36
goreleaser --debug=$(GORELEASER_DEBUG ) \
36
37
release \
37
38
--snapshot \
You can’t perform that action at this time.
0 commit comments