client: container: support CLI with entrypoint addition (#4126)

This will allow running netbird commands (including debugging) against the daemon and provide a flow similar to non-container usages.

It will by default both log to file and stderr so it can be handled more uniformly in container-native environments.
This commit is contained in:
Krzysztof Nazarewski (kdn)
2025-07-25 11:44:30 +02:00
committed by GitHub
parent 3f82698089
commit af8687579b
29 changed files with 267 additions and 66 deletions

View File

@@ -32,6 +32,7 @@ import (
"github.com/netbirdio/netbird/management/server/types"
"github.com/netbirdio/netbird/signal/proto"
signalServer "github.com/netbirdio/netbird/signal/server"
"github.com/netbirdio/netbird/util"
)
var (
@@ -92,7 +93,7 @@ func TestConnectWithRetryRuns(t *testing.T) {
func TestServer_Up(t *testing.T) {
ctx := internal.CtxInitState(context.Background())
s := New(ctx, t.TempDir()+"/config.json", "console")
s := New(ctx, t.TempDir()+"/config.json", util.LogConsole)
err := s.Start()
require.NoError(t, err)
@@ -130,7 +131,7 @@ func (m *mockSubscribeEventsServer) Context() context.Context {
func TestServer_SubcribeEvents(t *testing.T) {
ctx := internal.CtxInitState(context.Background())
s := New(ctx, t.TempDir()+"/config.json", "console")
s := New(ctx, t.TempDir()+"/config.json", util.LogConsole)
err := s.Start()
require.NoError(t, err)