reanahub / reana-auth-vomsproxy

REANA VOMS proxy authenticator
http://www.reana.io
MIT License
0 stars 21 forks source link

build: fix support for ESCAPE VOMS #28

Closed tiborsimko closed 2 days ago

tiborsimko commented 1 month ago

The build is having troubles due to ESCAPE VOMS support files:

$  reana-dev docker-build -c .
...
 => ERROR [6/7] RUN wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses                                                                               0.2s
------
 > [6/7] RUN wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses:
0.178 /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses: No such file or directory
------
Dockerfile:30
--------------------
  28 |
  29 |     # Add support for ESCAPE VOMS
  30 | >>> RUN wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses
  31 |     RUN mkdir -p /etc/grid-security/vomsdir/escape \
  32 |         && wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.lsc -O /etc/grid-security/vomsdir/escape/voms-escape.cloud.cnaf.infn.it.lsc
--------------------
ERROR: failed to solve: process "/bin/sh -c wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses" did not complete successfully: exit code: 1
garciagenrique commented 1 month ago

Hello @tiborsimko,

I just give it a try and I can both reach the link manually and build an image using this link (https://github.com/vre-hub/environments/actions/runs/9077150920/job/24941384878#step:5:290). Could you try building again the image, plase ?

mdonadoni commented 1 month ago

I also get this error, not because the ESCAPE VOMS support files are not accessible, but because the /etc/vomses directory does not exist (anymore).

The following changes fix the issue:

@@ -27,6 +27,7 @@ RUN yum install -y \
     yum clean all

 # Add support for ESCAPE VOMS
-RUN wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses
+RUN mkdir -p /etc/vomses \
+    && wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses
 RUN mkdir -p /etc/grid-security/vomsdir/escape \
     && wget -q https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.lsc -O /etc/grid-security/vomsdir/escape/voms-escape.cloud.cnaf.infn.it.lsc

However we should probably understand why all the other configuration files in /etc/vomses have disappeared?