mirror of
https://github.com/puppetlabs/vmpooler-deployment.git
synced 2026-01-26 11:38:41 -05:00
Improve development experience
This commit is contained in:
parent
3f34b85dcb
commit
45388de4e1
12 changed files with 119 additions and 99 deletions
101
docker/docker-compose.dev.yml
Normal file
101
docker/docker-compose.dev.yml
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
# For local development run with a dummy provider
|
||||
version: '3.8'
|
||||
services:
|
||||
redis-server:
|
||||
# This should match the major version used in the vmpooler helm chart
|
||||
image: redis:6
|
||||
command: "redis-server --requirepass vmpooler"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./data/redis
|
||||
target: /data
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
redis-commander:
|
||||
image: rediscommander/redis-commander:latest
|
||||
environment:
|
||||
- REDIS_HOST=redis-server
|
||||
- REDIS_PASSWORD=vmpooler
|
||||
- HTTP_USER=admin
|
||||
- HTTP_PASSWORD=admin
|
||||
ports:
|
||||
- 8080:8081
|
||||
links:
|
||||
- redis-server
|
||||
|
||||
jaeger-aio:
|
||||
image: jaegertracing/all-in-one:1
|
||||
ports:
|
||||
- "14250:14250"
|
||||
- "8081:16686"
|
||||
user: '1001'
|
||||
read_only: true
|
||||
cap_drop:
|
||||
- ALL
|
||||
|
||||
vmpooler-api:
|
||||
# See image build instructions in README and Dockerfile.local
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile.dev
|
||||
tty: true
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ../../
|
||||
target: /opt/vmpooler-projects
|
||||
- type: bind
|
||||
source: ./data/vmpooler.yaml
|
||||
target: /etc/vmpooler/vmpooler.yaml
|
||||
# - type: bind
|
||||
# source: ./data/vmpooler-example-key.json
|
||||
# target: /etc/vmpooler/vmpooler-example-key.json
|
||||
ports:
|
||||
- "8082:4567"
|
||||
environment:
|
||||
- VMPOOLER_DEBUG=true # for use of dummy auth
|
||||
- DEBUG_FLAG=true
|
||||
- VMPOOLER_CONFIG_FILE=/etc/vmpooler/vmpooler.yaml
|
||||
- REDIS_SERVER=redis-server
|
||||
- REDIS_PASSWORD=vmpooler
|
||||
- LOGFILE=/dev/null
|
||||
- VMPOOLER_TRACING_ENABLED=true
|
||||
- VMPOOLER_TRACING_JAEGER_HOST=http://jaeger-aio:14268/api/traces
|
||||
# - GOOGLE_APPLICATION_CREDENTIALS=/etc/vmpooler/vmpooler-example-key.json
|
||||
command: api
|
||||
links:
|
||||
- redis-server
|
||||
- jaeger-aio
|
||||
|
||||
vmpooler-manager:
|
||||
# See image build instructions in README and Dockerfile.local
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile.dev
|
||||
tty: true
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ../../
|
||||
target: /opt/vmpooler-projects
|
||||
- type: bind
|
||||
source: ./data/vmpooler.yaml
|
||||
target: /etc/vmpooler/vmpooler.yaml
|
||||
# - type: bind
|
||||
# source: ./data/vmpooler-example-key.json
|
||||
# target: /etc/vmpooler/vmpooler-example-key.json
|
||||
ports:
|
||||
- "8083:4567"
|
||||
environment:
|
||||
- VMPOOLER_DEBUG=true # for use of dummy auth
|
||||
- DEBUG_FLAG=true
|
||||
- VMPOOLER_CONFIG_FILE=/etc/vmpooler/vmpooler.yaml
|
||||
- REDIS_SERVER=redis-server
|
||||
- REDIS_PASSWORD=vmpooler
|
||||
- LOGFILE=/dev/null
|
||||
- VMPOOLER_TRACING_ENABLED=true
|
||||
- VMPOOLER_TRACING_JAEGER_HOST=http://jaeger-aio:14268/api/traces
|
||||
# - GOOGLE_APPLICATION_CREDENTIALS=/etc/vmpooler/vmpooler-example-key.json
|
||||
command: manager
|
||||
links:
|
||||
- redis-server
|
||||
- jaeger-aio
|
||||
Loading…
Add table
Add a link
Reference in a new issue