From a7c157d5e964c092b8bef1effb7f8d804c194d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Tue, 8 Aug 2023 15:26:23 +0200 Subject: [PATCH] docker: podman-friendly image locations Adds fully qualified canonical locations of container images, making the container technology setup podman-friendly. Closes reanahub/reana#729. --- reana_commons/config.py | 4 ++-- .../openapi_specifications/reana_job_controller.json | 8 ++++---- tests/conftest.py | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/reana_commons/config.py b/reana_commons/config.py index 4cd6b5a4..b178729e 100644 --- a/reana_commons/config.py +++ b/reana_commons/config.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # This file is part of REANA. -# Copyright (C) 2018, 2019, 2020, 2021, 2022 CERN. +# Copyright (C) 2018, 2019, 2020, 2021, 2022, 2023 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. @@ -481,7 +481,7 @@ def default_workspace(): # Kerberos configurations KRB5_CONTAINER_IMAGE = os.getenv( - "KRB5_CONTAINER_IMAGE", "reanahub/reana-auth-krb5:1.0.1" + "KRB5_CONTAINER_IMAGE", "docker.io/reanahub/reana-auth-krb5:1.0.1" ) """Default docker image of KRB5 sidecar container.""" diff --git a/reana_commons/openapi_specifications/reana_job_controller.json b/reana_commons/openapi_specifications/reana_job_controller.json index f90bda3a..a4842434 100644 --- a/reana_commons/openapi_specifications/reana_job_controller.json +++ b/reana_commons/openapi_specifications/reana_job_controller.json @@ -195,7 +195,7 @@ "atlas.cern.ch", "atlas-condb.cern.ch" ], - "docker_img": "busybox", + "docker_img": "docker.io/library/busybox", "job_id": "1612a779-f3fa-4344-8819-3d12fa9b9d90", "max_restart_count": 3, "restart_count": 0, @@ -207,7 +207,7 @@ "atlas.cern.ch", "atlas-condb.cern.ch" ], - "docker_img": "busybox", + "docker_img": "docker.io/library/busybox", "job_id": "2e4bbc1d-db5e-4ee0-9701-6e2b1ba55c20", "max_restart_count": 3, "restart_count": 0, @@ -300,7 +300,7 @@ "atlas.cern.ch", "atlas-condb.cern.ch" ], - "docker_img": "busybox", + "docker_img": "docker.io/library/busybox", "job_id": "cdcf48b1-c2f3-4693-8230-b066e088c6ac", "max_restart_count": 3, "restart_count": 0, @@ -413,4 +413,4 @@ } }, "swagger": "2.0" -} \ No newline at end of file +} diff --git a/tests/conftest.py b/tests/conftest.py index 39c1cf47..87454803 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # This file is part of REANA. -# Copyright (C) 2018, 2019, 2021 CERN. +# Copyright (C) 2018, 2019, 2021, 2023 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. @@ -27,7 +27,7 @@ def dummy_snakefile(): output: "results/foo.txt" container: - "docker://python:3.10.0-buster" + "docker://docker.io/library/python:3.10.0-buster" resources: kubernetes_memory_limit="256Mi" shell: @@ -39,7 +39,7 @@ def dummy_snakefile(): output: "results/bar.txt" container: - "docker://python:3.10.0-buster" + "docker://docker.io/library/python:3.10.0-buster" resources: kubernetes_memory_limit="256Mi" shell: @@ -52,7 +52,7 @@ def dummy_snakefile(): output: "results/baz.txt" container: - "docker://python:3.10.0-buster" + "docker://docker.io/library/python:3.10.0-buster" resources: kubernetes_memory_limit="256Mi" shell: