Skip to content

Commit c1875d5

Browse files
committed
sandboxjs: make node image discovery more robust
"docker images" strips out 'docker.io' registry, so change our query to match
1 parent 197eac9 commit c1875d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cwl_utils/sandboxjs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,11 @@ def new_js_proc(
301301

302302
if nodejs is None or nodejs is not None and required_node_version is False:
303303
try:
304-
nodeimg = "docker.io/node:alpine"
304+
nodeimg = "node:alpine"
305305
if container_engine == "singularity":
306-
nodeimg = f"docker://{nodeimg}"
306+
nodeimg = f"docker://docker.io/{nodeimg}"
307307
elif container_engine in ("podman", "udocker"):
308-
nodeimg = "docker.io/library/node:alpine"
308+
nodeimg = f"docker.io/library/{nodeimg}"
309309

310310
if not self.have_node_slim:
311311
singularity_cache: Optional[str] = None

0 commit comments

Comments
 (0)