docker-eth-dev icon indicating copy to clipboard operation
docker-eth-dev copied to clipboard

Add solc binary to truffle container to speed up compiles

Open chatch opened this issue 7 years ago • 4 comments

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 avatar Mar 15 '17 09:03 chatch

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

chatch avatar Mar 15 '17 09:03 chatch

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

gnidan avatar Mar 15 '17 18:03 gnidan

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

chatch avatar Mar 16 '17 12:03 chatch

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

gnidan avatar Mar 16 '17 13:03 gnidan