File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ def custom_graph(
25
25
fork_obs_query_interval : int ,
26
26
caddy : bool ,
27
27
logging : bool ,
28
+ force_pull : bool
28
29
):
29
30
try :
30
31
datadir .mkdir (parents = False , exist_ok = False )
@@ -83,6 +84,10 @@ def custom_graph(
83
84
# Configure logging
84
85
defaults_yaml_content ["collectLogs" ] = logging
85
86
87
+ # Set pullPolicy
88
+ if force_pull :
89
+ defaults_yaml_content ["image" ]["pullPolicy" ] = "Always"
90
+
86
91
with open (os .path .join (datadir , "node-defaults.yaml" ), "w" ) as f :
87
92
yaml .dump (defaults_yaml_content , f , default_flow_style = False , sort_keys = False )
88
93
@@ -123,6 +128,14 @@ def inquirer_create_network(project_path: Path):
123
128
choices = SUPPORTED_TAGS ,
124
129
default = DEFAULT_TAG ,
125
130
),
131
+
132
+ inquirer .Confirm (
133
+ "force_pull" ,
134
+ message = click .style (
135
+ "Would you like to force-pull bitcoin node images from dockerhub?" , fg = "blue" , bold = True
136
+ ),
137
+ default = False ,
138
+ ),
126
139
]
127
140
128
141
net_answers = inquirer .prompt (questions )
@@ -197,6 +210,7 @@ def inquirer_create_network(project_path: Path):
197
210
fork_observer_query_interval ,
198
211
caddy ,
199
212
logging ,
213
+ net_answers ["force_pull" ],
200
214
)
201
215
return custom_network_path
202
216
You can’t perform that action at this time.
0 commit comments