| Steps | Command/Description |
|---|---|
| Installation | https://www.habitat.sh/docs/get-habitat/ |
| CLI Configuration |
(configure the CLI). |
| Start with a plan | hab plan init ruby |
| Inside the ruby directory | $ ls -la ruby / config/ hooks/ default.toml plan.sh |
| plan.sh | plan.sh is a bash script that describes how to build your package. |
| Enter the studio | hab studio enter (build and test your Habitat packages). |
| Build the package | build (Within your studio environment, run). |
Export the package as a Docker image | hab pkg export docker (nameoftheorigin)/ruby |
| Testing the build | docker run --rm --entrypoint=/bin/bash nameoftheorigin/ruby -c irb |
Thursday, July 6, 2017
Build Docker containers from scratch with habitat
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment