Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update toolbox build #929

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,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)
}
Loading