EOSC-synergy / FAIR_eva

Apache License 2.0
4 stars 4 forks source link

CD/CI image for FAIR_eva and issues with Dockerfile #19

Open AJRubio-Montero opened 2 years ago

AJRubio-Montero commented 2 years ago

Good evening,

This repository are passing some SQaaS tests, but is not uploading any image to DockerHub repository (I think). I only find three images at https://hub.docker.com/r/ferag/fair_eva/tags ; which are from 4 months ago.

It is very interesting count on an stable image at DockerHub to be used in other SQaaS tests. (not to build a image in our own pipelines).

On the other hand, I'm building the FAIR_eva image for testing purposes with:

`` docker build -t fair_eva:ajrm https://github.com/EOSC-synergy/FAIR_eva.git```

Then I tried:

~# docker run -ti fair_eva:ajrm /bin/curl -H "Content-Type: application/json" -X POST -d '{"id": "10261/2765", "repo": "oai-pmh", "oai_base": "http://digital.csic.es/dspace-oai/request"}' http://localhost:9090/v1.0/rda/rda_all

But it doesn't work. To solve this issue I had to enter to the image and:

~# docker run -ti fair_eva:ajrm bash
root@0fa6ae2933bd:/FAIR_eva# apt-get install -y curl
root@0fa6ae2933bd:/FAIR_eva# python setup.py install

Thus, I can launch the usual test:

root@0fa6ae2933bd:/FAIR_eva# bash start.sh
root@0fa6ae2933bd:/FAIR_eva#  /bin/curl -H "Content-Type: application/json" -X POST -d '{"id": "10261/2765", "repo": "oai-pmh", "oai_base": "http://digital.csic.es/dspace-oai/request"}' http://localhost:9090/v1.0/rda/rda_all``

Could you enable these features in the Dockerfile?.

Thank you very much in advance. Cheers.

ferag commented 2 years ago

Hi! Thanks for the feedback. I have updated the docker images (manually) but it will be aprt of the SQaaS pipeline. I hace also update the documentation, so you can have a look.

AJRubio-Montero commented 2 years ago

Hello Fernando.

I'm testing the new "fair_eva: latest" image and it manually works, but when I try to use in SQaaS pipeline, it cannot be created:

https://jenkins.eosc-synergy.eu/job/eosc-synergy-org/job/onedataSim/job/build-S1/26/console

Perhaps I have to force something in the pipeline or it could be Jenkins had reached the maximun number of downloads for "ferag" repository.

Thanks in advance. Cheers.

ferag commented 2 years ago

Hello AJ, It seems to be something inside Jenkins. Let me ask. Fernando