Commit a78c059
committed
(fix) : Makefile docker build command by removing platform-specific setup
- Updated `docker-build` to remove platform-specific configurations, making it architecture-agnostic.
- The command now builds according to the local environment's architecture without specifying `GOOS` or `GOARCH`.
- Simplifies the Makefile by removing unnecessary exports for platform-specific builds, allowing compatibility across both Linux and macOS without manual adjustments.
Note that when we run `make docker-build` it is not working.
It fails with the error:
```
Error:
) $ make build docker-build
/Users/camiladeomacedo/go/bin/controller-gen-v0.16.1 rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/base/crd/bases output:rbac:artifacts:config=config/base/rbac
/Users/camiladeomacedo/go/bin/controller-gen-v0.16.1 object:headerFile="hack/boilerplate.go.txt" paths="./..."
go fmt ./...
go vet -tags 'containers_image_openpgp' ./...
```
This change ensures that the docker build will build the binary according to the local architecture and not for a specific ARCH. It simplifies the Makefile and logic to build.1 parent 8fd46b4 commit a78c059
1 file changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 272 | | |
280 | 273 | | |
281 | 274 | | |
282 | 275 | | |
283 | | - | |
284 | | - | |
| 276 | + | |
| 277 | + | |
285 | 278 | | |
286 | 279 | | |
287 | 280 | | |
| |||
0 commit comments