Skip to content

Commit

Permalink
chore: update toolbox build (#929)
Browse files Browse the repository at this point in the history
# Description

Fix toolbox build

## Related Issue

If this pull request is related to any issue, please mention it here.
Additionally, make sure that the issue is assigned to you before
submitting this pull request.

## Checklist

- [ ] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [ ] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [ ] I have correctly attributed the author(s) of the code.
- [ ] I have tested the changes locally.
- [ ] I have followed the project's style guidelines.
- [ ] I have updated the documentation, if necessary.
- [ ] I have added tests, if applicable.

## Screenshots (if applicable) or Testing Completed

Please add any relevant screenshots or GIFs to showcase the changes
made.

## Additional Notes

Add any additional notes or context about the pull request here.

---

Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
  • Loading branch information
matmerr authored Nov 27, 2024
1 parent 3945951 commit 02aecf4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ kapinger-image:
$(IMAGE_REGISTRY)/$(KAPINGER_IMAGE):$(TAG)-linux-amd64 \
$(IMAGE_REGISTRY)/$(KAPINGER_IMAGE):$(TAG)-linux-arm64

toolbox:
docker buildx build --builder retina --platform linux/amd64 -t $(IMAGE_REGISTRY)/toolbox:$(TAG) -f ./hack/tools/toolbox/Dockerfile ./hack/tools/ --push

proto-gen: ## generate protobuf code
docker build --platform=linux/amd64 \
-t $(IMAGE_REGISTRY)/$(RETINA_PROTO_IMAGE):$(RETINA_PLATFORM_TAG) \
Expand Down
4 changes: 2 additions & 2 deletions hack/tools/toolbox/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module github.com/microsoft/retina/hack/tools/toolbox

go 1.22.5

replace github.com/microsoft/retina/hack/tools/toolbox/kapinger => ../kapinger
replace github.com/microsoft/retina/hack/tools/kapinger => ../kapinger

require github.com/microsoft/retina/hack/tools/toolbox/kapinger v0.0.0-00010101000000-000000000000
require github.com/microsoft/retina/hack/tools/kapinger v0.0.0-20241101210114-ecdabdbf715f // indirect
2 changes: 2 additions & 0 deletions hack/tools/toolbox/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/microsoft/retina/hack/tools/kapinger v0.0.0-20241101210114-ecdabdbf715f h1:zoYMjYLS/mdy2cFY8kUGhqVvY/+3YKjUFtu3namXcrY=
github.com/microsoft/retina/hack/tools/kapinger v0.0.0-20241101210114-ecdabdbf715f/go.mod h1:mdq2Z9SePF3lj4VRJV6cfzuSFfp0z7a/zlX2SsVtou4=
11 changes: 9 additions & 2 deletions hack/tools/toolbox/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
package main

import "github.com/microsoft/retina/hack/tools/toolbox/kapinger/servers"
import (
"context"

"github.com/microsoft/retina/hack/tools/kapinger/config"
"github.com/microsoft/retina/hack/tools/kapinger/servers"
)

func main() {
servers.StartAll()
cfg := config.LoadConfigFromEnv()
ctx := context.Background()
servers.StartAll(ctx, cfg)
}

0 comments on commit 02aecf4

Please sign in to comment.