Skip to content

Commit

Permalink
revert 6cec7f1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcl committed Sep 26, 2024
1 parent b323a8b commit 2fbedd2
Showing 1 changed file with 18 additions and 34 deletions.
52 changes: 18 additions & 34 deletions integration-tests/docker/test_env/cl_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ type ClNode struct {
UserEmail string `json:"userEmail"`
UserPassword string `json:"userPassword"`
AlwaysPullImage bool `json:"-"`
RemoteDebugger bool `json:"-"`
t *testing.T
l zerolog.Logger
}
Expand Down Expand Up @@ -146,8 +145,6 @@ func NewClNode(networks []string, imageName, imageVersion string, nodeConfig *ch
NodeConfig: nodeConfig,
PostgresDb: pgDb,
l: log.Logger,
// TODO CCIP-3447 drill user specified config through to set RemoteDebugger
RemoteDebugger: false,
}
n.SetDefaultHooks()
for _, opt := range opts {
Expand Down Expand Up @@ -445,43 +442,30 @@ func (n *ClNode) getContainerRequest(secrets string) (
adminCredsPath := "/home/admin-credentials.txt"
apiCredsPath := "/home/api-credentials.txt"

entrypoint := []string{
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
}

if n.RemoteDebugger {
entrypoint = []string{
"/home/chainlink/go/bin/dlv",
"exec",
"/usr/local/bin/chainlink",
"--accept-multiclient",
"--headless",
"--listen=0.0.0.0:40000",
"--api-version=2",
"--continue",
"--",
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
}
}

return &tc.ContainerRequest{
Name: n.ContainerName,
AlwaysPullImage: n.AlwaysPullImage,
Image: fmt.Sprintf("%s:%s", n.ContainerImage, n.ContainerVersion),
ExposedPorts: []string{"6688/tcp", test_env.NatPortFormat("40000")},
Env: n.ContainerEnvs,
Entrypoint: entrypoint,
Networks: append(n.Networks, "tracing"),
Entrypoint: []string{
//"/home/chainlink/go/bin/dlv",
//"exec",
//"/usr/local/bin/chainlink",
//"--accept-multiclient",
//"--headless",
//"--listen=0.0.0.0:40000",
//"--api-version=2",
//"--continue",
//"--",
"chainlink",
"-c", configPath,
"-s", secretsPath,
"node", "start", "-d",
"-p", adminCredsPath,
"-a", apiCredsPath,
},
Networks: append(n.Networks, "tracing"),
WaitingFor: tcwait.ForHTTP("/readyz").
WithPort("6688/tcp").
WithStartupTimeout(n.StartupTimeout).
Expand Down

0 comments on commit 2fbedd2

Please sign in to comment.