Created
July 17, 2018 21:47
-
-
Save christophermaier/177e5db145147adab2e2fe5dd583dd92 to your computer and use it in GitHub Desktop.
Habitat testing setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
bastion: | |
image: christophermaier/test-probe:0.1.0-20180509175222 | |
command: | |
- "run" | |
- "--listen-ctl=0.0.0.0:9632" | |
- "--permanent-peer" | |
hostname: bastion | |
domainname: habitat.dev | |
volumes: | |
- type: bind | |
source: ./CTL_SECRET | |
target: /hab/sup/default/CTL_SECRET | |
read_only: true | |
networks: | |
habitat: | |
aliases: | |
- bastion.habitat.dev | |
alpha: | |
image: christophermaier/test-probe:0.1.0-20180509175222 | |
command: | |
- "run" | |
- "--listen-ctl=0.0.0.0:9632" | |
- "--peer=bastion.habitat.dev" | |
hostname: alpha | |
domainname: habitat.dev | |
volumes: | |
- type: bind | |
source: ./CTL_SECRET | |
target: /hab/sup/default/CTL_SECRET | |
read_only: true | |
networks: | |
habitat: | |
aliases: | |
- alpha.habitat.dev | |
beta: | |
image: christophermaier/test-probe:0.1.0-20180509175222 | |
command: | |
- "run" | |
- "--listen-ctl=0.0.0.0:9632" | |
- "--peer=bastion.habitat.dev" | |
hostname: beta | |
domainname: habitat.dev | |
volumes: | |
- type: bind | |
source: ./CTL_SECRET | |
target: /hab/sup/default/CTL_SECRET | |
read_only: true | |
networks: | |
habitat: | |
aliases: | |
- beta.habitat.dev | |
gamma: | |
image: christophermaier/test-probe:0.1.0-20180509175222 | |
command: | |
- "run" | |
- "--listen-ctl=0.0.0.0:9632" | |
- "--peer=bastion.habitat.dev" | |
hostname: gamma | |
domainname: habitat.dev | |
volumes: | |
- type: bind | |
source: ./CTL_SECRET | |
target: /hab/sup/default/CTL_SECRET | |
read_only: true | |
networks: | |
habitat: | |
aliases: | |
- gamma.habitat.dev | |
delta: | |
image: christophermaier/test-probe:0.1.0-20180509175222 | |
command: | |
- "run" | |
- "--listen-ctl=0.0.0.0:9632" | |
- "--peer=bastion.habitat.dev" | |
hostname: delta | |
domainname: habitat.dev | |
volumes: | |
- type: bind | |
source: ./CTL_SECRET | |
target: /hab/sup/default/CTL_SECRET | |
read_only: true | |
networks: | |
habitat: | |
aliases: | |
- delta.habitat.dev | |
console: | |
image: christophermaier/test-probe:0.1.0-20180509175222 | |
command: sh | |
volumes: | |
- type: bind | |
source: ./CTL_SECRET | |
target: /hab/sup/default/CTL_SECRET | |
read_only: true | |
networks: | |
habitat: | |
networks: | |
habitat: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose up bastion | |
docker-compose up alpha | |
docker-compose up beta | |
... | |
docker-compose run console | |
> hab svc load core/redis --remote-sup=alpha.habitat.dev | |
> hab svc load core/redis --remote-sup=beta.habitat.dev | |
> hab pkg install core/curl -b -f | |
> hab pkg install core/jq-static -b -f | |
> curl -s http://alpha.habitat.dev:9631/census | jq | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment