gnidan / docker-eth-dev

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

Add solc binary to truffle container to speed up compiles #12

Open chatch opened 7 years ago

chatch commented 7 years ago

At least with version 2 of truffle it would use solc (C++) if it found it on the PATH and the compile was much faster this way then using solc-js. I'm finding compiles taking quite a long time now.

I'll try this out with truffle 3 and see if it's the same.

chatch commented 7 years ago

Made a start on trying this out adding solc to the dockerfile but fails on boost and llibstdc+6 version ..

The following packages have unmet dependencies: solc : Depends: libboost-filesystem1.58.0 but it is not installable Depends: libboost-program-options1.58.0 but it is not installable Depends: libboost-system1.58.0 but it is not installable Depends: libstdc++6 (>= 5.2) but 4.9.2-10 is to be installed

Take a look at other solc images .. Dockerfile.patch.txt

gnidan commented 7 years ago

I wonder if there's a way we can use the solc container instead of adding solc directly to the truffle container

chatch commented 7 years ago

Docker in Docker container? eg. https://github.com/docker-library/docker/blob/bf822e2b9b4f755156b825444562c9865f22557f/17.03/dind/Dockerfile hmm... gets a bit silly somehow ..

i'll try install solc inside truffle container and see how it looks anyway

gnidan commented 7 years ago

Ah, yes, that thing that I've been warned against before... "don't try to run docker inside docker"