Description
This week, I built a repo for CI/CD for building a stack of Docker images using repo2docker (see pangeo-stacks). Along the way, I encountered a few areas in the documentation that could use some tuning. I'm happy to help contribute some additional docs, but first thought it would be good to first enumerate the spots that I found lacking detail.
1. config file
--config <config>
Path to config file for repo2docker
Questions: What is the repo2docker config file? How should this be formatted? When would I use it?
2. appendix and subdir
--appendix <appendix>
--subdir <subdir>
These two options lack doc strings in the command line app. The appendix in particular must be a string (not a path to a file as I first assumed). I still don't know what the subdir is.
3. push
--push
Push docker image to repository
This would benefit from a more complete description. Specifically, an example using --push
and --image-name
would be super useful when sorting out where to put the Dockerhub ID, image name, and tag.
4. cache
--cache-from <cache_from>
No description here. How would I use this?
Proposal
- Each command line option should have an example value demonstrating its use. For the
--image-name
option, you may have something likeName of image to be built. If unspecified will be autogenerate. (form: TARGET_IMAGE[:TAG], e.g. jupyter/myimage:latest)
. - Add a section to the docs with a bunch of usage examples. Currently there are three or four examples in https://repo2docker.readthedocs.io/en/latest/usage.html but they don't cover many of the tougher to understand options.
Activity