How to create a manifest
Writing a manifest is really simple. It's just a list of commands you want to be able to run, and the containers that can run them. A manifest is a
yaml file which includes a
manifest_name (which is the activation key for
bulker activate MANIFEST_NAME, and also the default name of the folder where the executables will be saved). Then you add a
commands section which lists the commands and a few attributes.
manifest: name: demo version: 1.0.0 commands: - command: cowsay docker_image: nsheff/cowsay docker_command: cowsay docker_args: "-i" - command: fortune docker_image: nsheff/fortune docker_command: fortune
command is the executable name; this is what the user will type in to run the command (e.g.
docker_args is any additional arguments required by this tool. You should add
-ifor tools that need to read/write piped output to/from stdin and stdout, and add
-tfor commands like
Rthat allocate a user interface.
docker_image is the location of the image.
docker_command is the command that will be executed inside the container. This is often the same as the
commanditself for the user, but it doesn't have to be. If you leave this out,
bulkerwill use the value of the
commandattribute by default.
That's it. If you want your manifest to specify specific versions of images, make sure you include the tags in your
Check out these examples at http://hub.bulker.io: