Last active
September 25, 2016 16:31
-
-
Save aweiteka/fa7bedcf385eea366504 to your computer and use it in GitHub Desktop.
Publishing Atomic Registry documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| git clone https://github.com/openshift/openshift-docs.git | |
| cd openshift-docs/ | |
| sudo docker run -it --rm -v `pwd`:/docs:z projectatomic/ascii_binder asciibinder package --site=atomic-registry | |
| # per http://www.asciibinder.org/latest/guides/maintainer_guide.html#site-file-organization | |
| # full HTML site lands in /path/to/openshift-docs/_package/atomic-registry | |
| # Note: files are owned by root due to container running as root. | |
| # Non-root user doesn't have perms to write to local dir |
Try removing the --site arg. It's optional. You'll build all of the sites but it's a minor optimization.
Should the Dockerfile using ENTRYPOINT instead of CMD?
Ah, yeah, that's probably it. I went back and forth on this. ENTRYPOINT feels so prescriptive that I ended up leaving it out.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get the following:
Should the Dockerfile using ENTRYPOINT instead of CMD?