MCPcopy Create free account
hub / github.com/FastLED/FastLED / ensure_image_available

Method ensure_image_available

ci/docker_utils/avr8js_docker.py:207–221  ·  view source on GitHub ↗

Check if Docker image exists, build if needed

(self)

Source from the content-addressed store, hash-verified

205 return 1
206
207 def ensure_image_available(self) -> bool:
208 """Check if Docker image exists, build if needed"""
209 try:
210 if not self.check_image_exists(self.docker_image):
211 print(f"Docker image {self.docker_image} not found")
212 print("Building image...")
213 return self.build_image()
214
215 return True
216 except KeyboardInterrupt as ki:
217 handle_keyboard_interrupt(ki)
218 raise
219 except Exception as e:
220 print(f"❌ Error checking Docker image: {e}")
221 return False
222
223 def build_image(self) -> bool:
224 """Build Docker image from Dockerfile"""

Callers 1

mainFunction · 0.95

Calls 4

check_image_existsMethod · 0.95
build_imageMethod · 0.95
printFunction · 0.50

Tested by

no test coverage detected