Skip to content

Commit 3942d41

Browse files
committed
add cl image override
1 parent 16a6284 commit 3942d41

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

framework/components/simple_node_set/node_set.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/smartcontractkit/chainlink-testing-framework/framework/components/clnode"
88
"github.com/smartcontractkit/chainlink-testing-framework/framework/components/postgres"
99
"golang.org/x/sync/errgroup"
10+
"os"
1011
"slices"
1112
"strings"
1213
"sync"
@@ -79,6 +80,8 @@ func sharedDBSetup(in *Input, bcOut *blockchain.Output) (*Output, error) {
7980
}
8081
nodeOuts := make([]*clnode.Output, 0)
8182

83+
envImage := os.Getenv("CHAINLINK_IMAGE")
84+
8285
// to make it easier for chaos testing we use static ports
8386
// there is no need to check them in advance since testcontainers-go returns a nice error
8487
var (
@@ -140,6 +143,10 @@ func sharedDBSetup(in *Input, bcOut *blockchain.Output) (*Output, error) {
140143
},
141144
}
142145

146+
if envImage != "" {
147+
nodeSpec.Node.Image = envImage
148+
}
149+
143150
dbURLHost := strings.Replace(dbOut.Url, "/chainlink?sslmode=disable", fmt.Sprintf("/db_%d?sslmode=disable", i), -1)
144151
dbURL := strings.Replace(dbOut.DockerInternalURL, "/chainlink?sslmode=disable", fmt.Sprintf("/db_%d?sslmode=disable", i), -1)
145152
dbSpec := &postgres.Output{

0 commit comments

Comments
 (0)