File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
15
15
from .utils import setup_wallet
16
16
17
+ LOCALNET_IMAGE_NAME = "ghcr.io/opentensor/subtensor-localnet:devnet-ready"
18
+
17
19
18
20
def wait_for_node_start (process , pattern , timestamp : int = None ):
19
21
for line in process .stdout :
@@ -113,6 +115,7 @@ def is_docker_running():
113
115
stderr = subprocess .DEVNULL ,
114
116
check = True ,
115
117
)
118
+ subprocess .run (["docker" , "pull" , LOCALNET_IMAGE_NAME ], check = True )
116
119
return True
117
120
except subprocess .CalledProcessError :
118
121
return False
@@ -143,7 +146,6 @@ def try_start_docker():
143
146
return False
144
147
145
148
container_name = f"test_local_chain_{ str (time .time ()).replace ('.' , '_' )} "
146
- image_name = "ghcr.io/opentensor/subtensor-localnet:devnet-ready"
147
149
148
150
# Command to start container
149
151
cmds = [
@@ -156,7 +158,7 @@ def try_start_docker():
156
158
"9944:9944" ,
157
159
"-p" ,
158
160
"9945:9945" ,
159
- image_name ,
161
+ LOCALNET_IMAGE_NAME ,
160
162
params ,
161
163
]
162
164
You can’t perform that action at this time.
0 commit comments