Skip to content

simplify make manpages - #26416

Closed
AkihiroSuda wants to merge 1 commit into
moby:masterfrom
AkihiroSuda:md2man106
Closed

AkihiroSuda wants to merge 1 commit into
moby:masterfrom
AkihiroSuda:md2man106

Conversation

@AkihiroSuda

Copy link
Copy Markdown
Member

- What I did
Simplified make manpages.

The generator.go hadn't used the top-level vendor directory and had managed the dependency using its own glide.lock.
Considering that now generator.go depends on github.com/docker/docker/client rather than vendored github.com/docker/engine-api/client, I think we should unify the vendoring system.

This PR also updates md2man to v1.0.6, which improves the rendering of hyperlinks.
cpuguy83/go-md2man#21

- How I did it

  • Removed man/Dockerfile.$GOARCH and some scripts which were very complicated
  • Moved man/Dockerfile to the top level directory. Now it uses the top level directory as the build context (because generator.go depends on github.com/docker/docker/client)
  • Removed man/glide.*, and vendored packages using hack/vendor.sh
  • Updated generator.go so as to make it much more pretty

- How to verify it

$ make manpages
$ ls man/man*
man/man1:
docker-attach.1   docker-load.1                docker-node-ps.1      docker-search.1            docker-swarm-leave.1
docker-build.1    docker-login.1               docker-node-rm.1      docker-service-create.1    docker-swarm-update.1
docker-commit.1   docker-logout.1              docker-node-update.1  docker-service-inspect.1   docker-swarm.1
docker-cp.1       docker-logs.1                docker-node.1         docker-service-ls.1        docker-tag.1
docker-create.1   docker-network-connect.1     docker-pause.1        docker-service-ps.1        docker-top.1
docker-diff.1     docker-network-create.1      docker-port.1         docker-service-rm.1        docker-unpause.1
docker-events.1   docker-network-disconnect.1  docker-ps.1           docker-service-scale.1     docker-update.1
docker-exec.1     docker-network-inspect.1     docker-pull.1         docker-service-update.1    docker-version.1
docker-export.1   docker-network-ls.1          docker-push.1         docker-service.1           docker-volume-create.1
docker-history.1  docker-network-rm.1          docker-rename.1       docker-start.1             docker-volume-inspect.1
docker-images.1   docker-network.1             docker-restart.1      docker-stats.1             docker-volume-ls.1
docker-import.1   docker-node-demote.1         docker-rm.1           docker-stop.1              docker-volume-rm.1
docker-info.1     docker-node-inspect.1        docker-rmi.1          docker-swarm-init.1        docker-volume.1
docker-inspect.1  docker-node-ls.1             docker-run.1          docker-swarm-join-token.1  docker-wait.1
docker-kill.1     docker-node-promote.1        docker-save.1         docker-swarm-join.1        docker.1

man/man5:
Dockerfile.5  docker-config-json.5

man/man8:
dockerd.8

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Akihiro Suda [email protected]

Comment thread Dockerfile.man Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: add proper Dockerfiles for other archs

@justincormack

Copy link
Copy Markdown
Contributor

cc @dnephin

Signed-off-by: Akihiro Suda <[email protected]>
@dnephin

dnephin commented Sep 8, 2016 •

Copy link
Copy Markdown
Member

I'm -1 on this change. This is absolutely the opposite direction I think we should be going.

  • there is no reason to put these Dockerfile at the top level of the repo, making them slower to build (because you have to upload a much larger context). They belong under man/ or dockerfiles/man/, but not at the top level.
  • there is no reason to add these "generate manpage" dependencies to the set of dependencies used to build the binary. These are different sets of dependencies. Some tools (like glide) can manage this, but our vendor.sh can not.

Upgrading the dependency is fine, but I don't think we should make the other changes.

@AkihiroSuda

Copy link
Copy Markdown
Member Author

OK, thank you for the feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants