eth-sri / securify

[DEPRECATED] Security Scanner for Ethereum Smart Contracts
Apache License 2.0
215 stars 50 forks source link

Cache gradle installation when building the docker image #54

Closed hiqua closed 5 years ago

hiqua commented 5 years ago

Changing anything in the main repository will lead to redownloading gradle. There must be a way to cache this to avoid wasting time when testing the docker container with new changes.

ritzdorf commented 5 years ago

https://docs.gradle.org/current/userguide/gradle_daemon.html ?

hiqua commented 5 years ago

@ritzdorf thanks, but that's unrelated, I meant the ./gradlew jar in the Dockerfile which produces:

Downloading https://services.gradle.org/distributions/gradle-2.9-all.zip
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

basically just downloading this before we copy files from securify into the docker would ensure that this step is cached.

Actually a simple fix is #55.