mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-18 19:09:09 +02:00
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:
committed by
GitHub
parent
3f82698089
commit
af8687579b
@@ -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)
|
||||
|
Reference in New Issue
Block a user