reanahub / reana-client

REANA command-line client
http://reana-client.readthedocs.io/
MIT License
10 stars 45 forks source link

validate: add support for fully qualified image name #663

Closed mdonadoni closed 10 months ago

mdonadoni commented 10 months ago

Validation fails when using fully qualified image names, for example:

diff --git a/reana.yaml b/reana.yaml
index 50d1bd8..0fc4418 100644
--- a/reana.yaml
+++ b/reana.yaml
@@ -12,7 +12,7 @@ workflow:
   type: serial
   specification:
     steps:
-      - environment: 'python:2.7-slim'
+      - environment: 'docker.io/library/python:2.7-slim'
         commands:
           - python "${helloworld}"
               --inputfile "${inputfile}"
$ reana-client validate --environments -f reana.yaml
==> Verifying REANA specification file... .../reana-demo-helloworld/reana.yaml
  -> SUCCESS: Valid REANA specification file.
==> Verifying REANA specification parameters... 
  -> SUCCESS: REANA specification parameters appear valid.
==> Verifying workflow parameters and commands... 
  -> SUCCESS: Workflow parameters and commands appear valid.
==> Verifying dangerous workflow operations... 
  -> SUCCESS: Workflow operations appear valid.
==> Verifying environments in REANA specification file...
==> ERROR: Something went wrong when trying to validate .../reana-demo-helloworld/reana.yaml