gnidan / docker-eth-dev

Hacking together a containerized environment for Ethereum development with Truffle using Parity
22 stars 5 forks source link

Symlinked dapp under dapps fails to build #7

Open chatch opened 7 years ago

chatch commented 7 years ago

Here smart-contracts is a symlink to a project:

/dev/docker-eth-dev/dapps/smart-contracts$ truffle test
ERROR: Cannot start service truffle: oci runtime error: container_linux.go:247: starting container process caused "chdir to cwd (\"/var/dapps/smart-contracts\") set in config.json failed: no such file or directory"

But if I copy the full project into dapps/ it runs okay.

gnidan commented 7 years ago

Ah I was just thinking about this problem. I'll look into a fix. (Ideas welcome)

chatch commented 7 years ago

A couple of workarounds for this:

I'm using the first one and it works fine so I'll just go with that I think.

After reading some issues of people with a simular problem I don't think there is any plan to change this at the docker volumes level ...

gnidan commented 7 years ago

This could also potentially be solved via helpers in the truffle wrapper bin, perhaps.