sourcify: Fail to run Sourcify from Docker containers

I am trying to run locally from containers.

  • cloned the repo
  • created environments/.env from environments/.env.dev
  • made these changes in .env:
# Server config
REPOSITORY_PATH=/Users/svienot/GIT/ethereum/sourcify/repository
SOLC_REPO=/Users/svienot/GIT/ethereum/sourcify/solc-bin/linux-amd64
SOLJSON_REPO=/Users/svienot/GIT/ethereum/sourcify/solc-bin/soljson
…
# Docker config
## Where to mount the downloaded compilers directory on the host machine
SOLC_REPO_HOST=/Users/svienot/GIT/ethereum/sourcify/solc-bin/linux-amd64
SOLJSON_REPO_HOST=/Users/svienot/GIT/ethereum/sourcify/solc-bin/soljson
…
SERVER_URL=http://localhost
  • ran this: $ docker-compose -f repository.yaml -f server.yaml -f ui.yaml up -d

Services start fine, nothing too suspicious in the logs, but when I try to use the Verifier, I get the following error:

Screenshot 2023-04-24 at 19 52 12

View in Huly HI-478

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

I have finally succeeded in running (ui, server, repository) fully from docker containers, at least on my localhost. Getting the right config of env variables is a bit tricky. I have the feeling that I was unable to get things working as long as I was setting REPOSITORY_PATH with an absolute path…