kocolosk opened a new pull request #59: Introduce a development-friendly 
Dockerfil
URL: https://github.com/apache/couchdb-docker/pull/59
 
 
   This dev image configuration is modeled after the 2.1.1 Dockerfile with a 
few modifications useful for day-to-day development:
   
   * The Dockerfile builds from git rather than the official source releases. 
The build is configurable using the following `build-args`:
   
   ```
   clone_url (default: https://gitbox.apache.org/repos/asf/couchdb.git)
   checkout_branch (default: master)
   configure_options (default: <blank>)
   ```
   
     The configure_options are passed directly to ./configure and can be used 
to e.g. `--disable-docs` or `--disable-fauxton`:
   
   ```
   docker build --build-arg checkout_branch=my-cool-feature dev/
   ```
   
   * We take advantage of [multi-stage 
builds](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#use-multi-stage-builds)
 to create a series of layers that optimize build time without inflating the 
final image size. In normal development the layers that install runtime and 
build dependencies will be cached, and the build will start by updating and 
configuring the existing git clone.
   
   This work includes the changes proposed in #50 and #57. It moves the 
existing "cluster-in-a-box" Dockerfile to `dev-cluster`; I'd be curious to see 
if anyone uses that approach. Personally I think we should continue to refine 
and harden the Helm chart providing a Kubernetes StatefulSet and refer folks 
there instead. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to