Lucy-Family-Institute / presqt

Tools and RESTful Services to Improve Preservation and Re-use of Research Data & Software.
Apache License 2.0
4 stars 2 forks source link

Missing presqt.crt #750

Closed ptsefton closed 3 years ago

ptsefton commented 3 years ago

Hi, I am trying to run the Docker container on a Mac and I get and error about a missing certificate:

presqt_nginx_1 | 2021/05/12 06:05:08 [emerg] 1#1: cannot load certificate "/etc/ssl/certs/presqt.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/ssl/certs/presqt.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)

I can see it's referenced in the config:

grep -R . -e presqt.crt ./config/nginx/snippets/self-signed.conf:ssl_certificate /etc/ssl/certs/presqt.crt;

Macos 10.13.6 / docker-compose version 1.28.5, build c4eb3a1f

branks42 commented 3 years ago

Hello Peter,

Thanks for bringing this to our attention. We had had this setup so we would also have the nginx container running while developing, to do this we were creating self signed cerificates.

To make it easier for developers moving forward, I've created a new yml file that you can use to run it locally that won't need the nginx containers running.

Now you can usedocker-compose -f docker-compose-development.yml up --build for your initial build and then docker-compose -f docker-compose-development.yml up each time after that.

The README has been updated to reflect this change.

Thanks again

ptsefton commented 3 years ago

Thanks! Works now.