italia / spid-cie-oidc-django

The SPID/CIE OIDC Federation SDK, written in Python
Apache License 2.0
27 stars 28 forks source link

Fix docker compose for WSL2 compliancy #209

Closed danielegiallonardo closed 2 years ago

danielegiallonardo commented 2 years ago

In a Windows+WSL2 environment, external volumes don't work. In this PR a proposed solution with classic volumes

peppelinux commented 2 years ago

Thank you @danielegiallonardo

we should have some little changes on your very good proposal, these are:

  1. Please merge the dev branch to get the last commits on the README
  2. Please add an instruction to copy the example folder to another example_new or whatever, otherwise the changes we do on the dumps will affect the git tree.

Did you get it? We should copy the example folder to another one to be ignored in .gitignore

once we have this I think that I'll abandon the external storage (+ thankfulness to you)

danielegiallonardo commented 2 years ago

I've merged the changes from upstream. About the git tree, in order to execute the entire federation with an external RP, 4 files have been changed: the compose file (to include the section for the external RP) and the three dump files (to replace 127.0.0.1 with the hostnames). I have a couple of suggestions about that: