-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
34 lines (33 loc) · 1.07 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# How to use this file:
# export COOKBOOK=${PWD##*/} && docker-compose run --rm test
version: '2'
services:
test:
image: ${CHEF_IMAGE}
volumes:
- $PWD:/${COOKBOOK}
- ${CHEF_CONFIG_DIR}:/root/.chef
- ${CHEF_REPO_DIR}:/chef-repo
- ${AWS_CRED_DIR}:/root/.aws
- ${SSH_KEY_DIR}:/root/.ssh
working_dir: /${COOKBOOK}
network_mode: "host"
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
CHEF_DATA_BAGS: /chef-repo/data_bags
CHEF_SECRET_FILE: /root/.chef/${CHEF_SECRET_FILE}
COOKBOOK: ${COOKBOOK}
EC2_ROLE_ARN: ${EC2_ROLE_ARN}
EC2_SSH_KEY_ID: ${EC2_SSH_KEY_ID}
EC2_REGION: ${EC2_REGION}
EC2_AZ: ${EC2_AZ}
EC2_SUBNET_ID: ${EC2_SUBNET_ID}
EC2_INSTANCE_TYPE: ${EC2_INSTANCE_TYPE}
EC2_IMAGE_NAME: ${EC2_IMAGE_NAME}
EC2_SG: ${EC2_SG}
LATEST_PPM_PACKAGE: ${LATEST_PPM_PACKAGE}
REQUIRE_CHEF_OMNIBUS: ${REQUIRE_CHEF_OMNIBUS}
WIN_USER: ${WIN_USER}
WIN_PASS: ${WIN_PASS}
command: "'chef exec rake'"