MCPcopy Create free account
hub / github.com/apache/arrow / pull

Method pull

dev/archery/archery/docker/core.py:236–262  ·  view source on GitHub ↗
(self, service_name, pull_leaf=True, ignore_pull_failures=True)

Source from the content-addressed store, hash-verified

234 )
235
236 def pull(self, service_name, pull_leaf=True, ignore_pull_failures=True):
237 def _pull(service):
238 args = ['pull'] + self.config.verbosity_args()
239 if service['image'] in self.pull_memory:
240 return
241
242 if self.config.using_docker:
243 try:
244 self._execute_docker(*args, service['image'])
245 except Exception as e:
246 if ignore_pull_failures:
247 # better --ignore-pull-failures handling
248 print(e)
249 else:
250 raise
251 else:
252 if ignore_pull_failures:
253 args.append('--ignore-pull-failures')
254 self._execute_compose(*args, service['name'])
255
256 self.pull_memory.add(service['image'])
257
258 service = self.config.get(service_name)
259 for ancestor in service['ancestors']:
260 _pull(self.config.get(ancestor))
261 if pull_leaf:
262 _pull(service)
263
264 def build(self, service_name, use_cache=True, use_leaf_cache=True,
265 pull_parents=True):

Callers 6

test_compose_pullFunction · 0.95
test_compose_pull_paramsFunction · 0.95
docker_pullFunction · 0.45
docker_buildFunction · 0.45
docker_runFunction · 0.45

Calls 1

getMethod · 0.45

Tested by 3

test_compose_pullFunction · 0.76
test_compose_pull_paramsFunction · 0.76