Add docker-compose and dockerfile to support it

This commit adds a docker-compose file and a dockerfile to build vmpooler and install it from source.
This commit is contained in:
kirby@puppetlabs.com 2018-09-21 13:39:04 -07:00
parent 5e39bc2755
commit 8bddb4f854
2 changed files with 52 additions and 0 deletions

31
docker/docker-compose.yml Normal file
View file

@ -0,0 +1,31 @@
# For local development run with a dummy provider
version: '3.2'
services:
vmpooler:
build:
context: ../
dockerfile: docker/Dockerfile_local
volumes:
- type: bind
source: ${PWD}/vmpooler.yaml
target: /etc/vmpooler/vmpooler.yaml
ports:
- "4567:4567"
networks:
- redis-net
environment:
- VMPOOLER_DEBUG=true # for use of dummy auth
- VMPOOLER_CONFIG_FILE=/etc/vmpooler/vmpooler.yaml
- REDIS_SERVER=redis
image: vmpooler-local
depends_on:
- redis
redis:
image: redis
ports:
- "6379:6379"
networks:
- redis-net
networks:
redis-net: