An open API service indexing awesome lists of open source software.

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"

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
```