forked from daptiv/dotnetframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 1.09 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
35
# How to use this file:
# export COOKBOOK=${PWD##*/} && docker-compose run --rm test chef exec rake
version: '2'
services:
test:
image: heathsnow/docker_chef_workstation
volumes:
- $PWD:/${COOKBOOK}
- ${CHEF_CONFIG_DIR}:/root/.chef
- ${CHEF_REPO_DIR}:/chef-repo
- ${AWS_CRED_DIR}:/root/.aws
working_dir: /${COOKBOOK}
network_mode: "host"
environment:
COOKBOOK: ${COOKBOOK}
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}
CHEF_DATA_BAGS: /chef-repo/data_bags
CHEF_SECRET_FILE: /root/.chef/${CHEF_SECRET_FILE}
KITCHEN_YAML: ".kitchen_ec2.yml"
KNIFE_HOME: /root/.chef
WIN_USER: ${WIN_USER}
WIN_PASS: ${WIN_PASS}
command: |
bash -c 'bash -s <<EOF
echo "Please enter the command to execute:"
echo "Ex: docker-compose run --rm test chef exec bundle install"
EOF'