apache / accumulo-docker

Apache Accumulo Docker
https://accumulo.apache.org
Apache License 2.0
18 stars 25 forks source link

Refactor Docker image to allow faster rebuilds #23

Closed brianloss closed 2 years ago

brianloss commented 2 years ago

Convert the existing Docker image into a multi-stage image with independent layers for the base, Hadoop, Zookeeper, and Accumulo tarball download/extraction (and native library build in the Accumulo case). By having each install come from a separate base image, we can modify the file/version for any of the packages and reuse the build cached for the others, which greatly improves build times for a developer who is iterating on Accumulo, for example. Also, by using a separate builder base, the larger JDK and make tools were installed to build the Accumulo native libraries, but then those tools are not included in the final image.

keith-turner commented 2 years ago

There is a line in the readme that can be changed now. Can omit the version in the following line from the readme.

docker build --build-arg ACCUMULO_VERSION=2.0.0-SNAPSHOT --build-arg ACCUMULO_FILE=accumulo-2.0.0-SNAPSHOT-bin.tar.gz -t accumulo .
brianloss commented 2 years ago

There is a line in the readme that can be changed now. Can omit the version in the following line from the readme.

docker build --build-arg ACCUMULO_VERSION=2.0.0-SNAPSHOT --build-arg ACCUMULO_FILE=accumulo-2.0.0-SNAPSHOT-bin.tar.gz -t accumulo .

Good catch. Will change...