Following the instructions here: https://docs.getodk.org/central-install-digital-ocean/
...will result in an error when executing step 2 since ~/central/files/dkim/rsa.private is a directory.
Also, the final command in step 2: cp config.disabled config
...will simply copy the config.disabled file into the config folder (and not rename it)
@erobinson When you get a chance, please introduce yourself here. I'd also encourage you to add a real picture as your avatar because it helps build community!
what happens is that when docker tries to find rsa.private and it doesn't exist, it assumes it should make a new directory calledrsa.private and mounts that into the child container instead.
if you run rmdir ~/central/files/dkim/rsa.private and immediately run the genrsa it should resolve the issue. there may be some other directory you have to similarly delete.
i thought i included instructions about this in the documentation, but it's not there. i'll be sure it makes it in there this time.
Hi Issa, see my previous post, the folder is explicitly mapped during container creation as specified in the docker-compose file - it seems this is by design so somewhere between the script / instructions and the docker setup, there's a disconnect.
the issue is that the files are optional, but there is no way to communicate this fact to docker. docker don't care. so no matter what the thing that is there will get mapped into the container, and therefore no matter what docker will ensure that there is a thing there: in this case, a folder.
we could maybe put a file there as a placeholder, but then we'd have to make people delete that instead. so we'll patch the instructions to have people delete the folder.