cosmos / b9-checkers-academy-draft

32 stars 41 forks source link

Error on building docker: https://tutorials.cosmos.network/hands-on-exercise/4-run-in-prod/1-run-prod-docker.html #60

Closed perfogic closed 1 year ago

perfogic commented 1 year ago

Hello, I failed at this command after building dockerfile: image

Is there anyway to fix it ? Thank you: image image

perfogic commented 1 year ago

Fixed with debian:latest, but i willl leave it here for you to confirm whether it is okay when i update debian version to latest

perfogic commented 1 year ago

I face other eror when do command, can you help me why also ? thank you: Here i can't read client.toml, node_key.json, pri_validator_key.json image Here is the command i run: image

perfogic commented 1 year ago

@xavierlepretre hello, can you check it out ?

xavierlepretre commented 1 year ago

The content uses alpine for both compilation and production, right? You switched to debian for (only) production as an experimentation, right? Did you make sure that the compilation step uses CGO_ENABLED=0?

And if you do cat client.toml, do you get anything? I hope you did not run the make commands with sudo.

perfogic commented 1 year ago

no i don't get anything, the reason i realize that the right of that file is not allow for copying and i have to chmod from inside docker to make it readable outside. Currently, i'm replacing docker with current cosmos-checkersd for fix this problem

perfogic commented 1 year ago

i will close because i'm trying to finish this lesson. This is quite large with a lot of configure and hard to follow. Thank you for response