https://github.com/predominant/chefconf2020-habitat-step-2
ChefConf 2020 Demonstration Repository for the talk "Habitat, Step 2"
https://github.com/predominant/chefconf2020-habitat-step-2
Last synced: 3 months ago
JSON representation
ChefConf 2020 Demonstration Repository for the talk "Habitat, Step 2"
- Host: GitHub
- URL: https://github.com/predominant/chefconf2020-habitat-step-2
- Owner: predominant
- Created: 2020-05-18T16:12:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T14:27:28.000Z (about 5 years ago)
- Last Synced: 2025-02-01T09:27:34.918Z (5 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChefConf 2020 Habitat Demonstration
## Habitat Studio Testing
### Enter the Habitat Studio
```
# Open up the loadbalancer ports only
export HAB_DOCKER_OPTS="-p 8090:8090 -p 8091:8091"
hab studio enter
```### Build and run the packages
Use one only, Multiline, or:
```
build mywebserver
source results/last_build.env
hab svc load ${pkg_ident}
build myloadbalancer
source results/last_build.env
hab svc load ${pkg_ident} --bind backend:mywebserver.default
```Single line
```
build mywebserver; source results/last_build.env; hab svc load ${pkg_ident}; build myloadbalancer; source results/last_build.env; hab svc load ${pkg_ident} --bind backend:mywebserver.default
```## Virtualbox cluster
The virtualbox cluster is all-in-one and designed to be started simply with:
```
vagrant up
```Once boot is complete, you can get a list of Virtual Machines with:
```
vagrant status
```And you can ssh into them by name:
```
vagrant ssh web2
```