hyperledger / identus-mediator

Identus DIDComm V2 Mediator

Home Page:https://atalaprism.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java.io.IOException while building an image of the mediator

ndigirigijohn opened this issue · comments

Trying to build an image of the mediator to run locally with the command NODE_OPTIONS=--openssl-legacy-provider sbt docker:publishLocal but I get an java.io.IOException as shown in the below images .
Screenshot from 2024-01-31 10-18-31

Screenshot from 2024-01-31 10-18-33

Look like permission issue
make sure you are not running the command using sudo
NODE_OPTIONS=--openssl-legacy-provider sbt docker:publishLocal
Please follow the steps below
https://docs.docker.com/engine/install/linux-postinstall/

Yes. We had a call to help the user on this topic and is now solved.
Let's create three small tasks to improve documentation and close this one.

1- We should never need to run SBT with sudo (root user)
This can lead to problems of permissions to write the folders (like this)
Add something to the troubleshoot section about this.

2- Add instructions to double check if Docker was correctly installed. The user that is building the docker image needs to have access to the socket that talks to the docker system. (and should not be root)
Add also to the troubleshoot section what are the errors when this is not true
https://docs.docker.com/engine/install/linux-postinstall/

3- In the documentation rename docker-compose to docker compose (for the latest versions of docker)