Hi,
I’m working on a rancher api wrapper, and looking for some testing environment (master, host and external db) to be created dynamically. Like a docker-compose file with all parts connected.
version: '2’
services:
master:
image: rancher/server
ports:
- "8080:8080"
depends_on:
- mysql
environment:
- db-host=mysql
- db-port=3306
- db-user=root
- db-pass=root
- db-name=cattle
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=cattle
host:
build: host
depends_on:
- master
ports:
- “80:80”
The host container creates a debian machine with docker installed (yeah, docker in docker). But cannot force to execute the agent with the right key.
Any idea?
Thanks!