Skip to content

Commit 68d900b

Browse files
author
Simon So
committed
fix Dockerfile and Gemfile.lock and update READMEs
1 parent e0745ff commit 68d900b

File tree

10 files changed

+26
-159
lines changed

10 files changed

+26
-159
lines changed

Gemfile.lock

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.2)
4+
addressable (2.6.0)
55
public_suffix (>= 2.0.2, < 4.0)
6-
aws-sdk (2.11.197)
7-
aws-sdk-resources (= 2.11.197)
8-
aws-sdk-core (2.11.197)
6+
aws-sdk (2.11.210)
7+
aws-sdk-resources (= 2.11.210)
8+
aws-sdk-core (2.11.210)
99
aws-sigv4 (~> 1.0)
1010
jmespath (~> 1.0)
11-
aws-sdk-resources (2.11.197)
12-
aws-sdk-core (= 2.11.197)
11+
aws-sdk-resources (2.11.210)
12+
aws-sdk-core (= 2.11.210)
1313
aws-sigv4 (1.0.3)
1414
azure_graph_rbac (0.17.0)
1515
ms_rest_azure (~> 0.11.0)
@@ -65,7 +65,7 @@ GEM
6565
http-cookie (~> 1.0.0)
6666
faraday_middleware (0.12.2)
6767
faraday (>= 0.7.4, < 1.0)
68-
ffi (1.9.25)
68+
ffi (1.10.0)
6969
google-api-client (0.23.9)
7070
addressable (~> 2.5, >= 2.5.1)
7171
googleauth (>= 0.5, < 0.7.0)
@@ -118,12 +118,13 @@ GEM
118118
jmespath (1.4.0)
119119
json (2.1.0)
120120
jwt (2.1.0)
121-
kitchen-terraform (4.1.1)
121+
kitchen-terraform (4.3.0)
122122
dry-types (~> 0.9)
123123
dry-validation (~> 0.10)
124124
inspec (~> 3.0)
125125
mixlib-shellout (~> 2.2)
126126
test-kitchen (~> 1.23)
127+
tty-which (~> 0.4.0)
127128
little-plugger (1.1.4)
128129
logging (2.2.2)
129130
little-plugger (~> 1.1)
@@ -137,7 +138,7 @@ GEM
137138
mixlib-shellout
138139
mixlib-versioning
139140
thor
140-
mixlib-log (2.0.9)
141+
mixlib-log (3.0.1)
141142
mixlib-shellout (2.4.4)
142143
mixlib-versioning (1.2.7)
143144
ms_rest (0.7.3)
@@ -159,7 +160,7 @@ GEM
159160
net-ssh (>= 2.6.5)
160161
nori (2.6.0)
161162
os (1.0.0)
162-
parallel (1.12.1)
163+
parallel (1.13.0)
163164
parslet (1.8.2)
164165
pastel (0.7.2)
165166
equatable (~> 0.5.0)
@@ -197,13 +198,13 @@ GEM
197198
faraday (~> 0.9)
198199
jwt (>= 1.5, < 3.0)
199200
multi_json (~> 1.10)
200-
sslshake (1.2.0)
201+
sslshake (1.3.0)
201202
strings (0.1.4)
202203
strings-ansi (~> 0.1.0)
203204
unicode-display_width (~> 1.4.0)
204205
unicode_utils (~> 1.4.0)
205206
strings-ansi (0.1.0)
206-
term-ansicolor (1.7.0)
207+
term-ansicolor (1.7.1)
207208
tins (~> 1.0)
208209
test-kitchen (1.24.0)
209210
mixlib-install (~> 3.6)
@@ -217,7 +218,7 @@ GEM
217218
winrm-fs (~> 1.1)
218219
thor (0.20.3)
219220
timeliness (0.3.8)
220-
timers (4.2.0)
221+
timers (4.3.0)
221222
tins (1.20.2)
222223
tomlrb (1.2.8)
223224
train (1.6.3)
@@ -237,7 +238,7 @@ GEM
237238
winrm-fs (~> 1.0)
238239
tty-color (0.4.3)
239240
tty-cursor (0.6.0)
240-
tty-prompt (0.18.0)
241+
tty-prompt (0.18.1)
241242
necromancer (~> 0.4.0)
242243
pastel (~> 0.7.0)
243244
timers (~> 4.0)
@@ -254,6 +255,7 @@ GEM
254255
pastel (~> 0.7.2)
255256
strings (~> 0.1.0)
256257
tty-screen (~> 0.6.4)
258+
tty-which (0.4.0)
257259
uber (0.1.0)
258260
unf (0.1.4)
259261
unf_ext

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ make docker_run
5050
The root directory of the module will be mounted to `/cft/workdir` in the container. For example, to run the `mig-autoscaler` test suite:
5151

5252
```
53-
kitchen test mig-autosaler
53+
bundle exec kitchen test mig-autosaler
5454
```
5555

5656
or
5757

5858
```
59-
kitchen create mig-autoscaler
60-
kitchen converge mig-autoscaler
61-
kitchen verify mig-autoscaler
62-
kitchen destroy mig-autoscaler
59+
bundle exec kitchen create mig-autoscaler
60+
bundle exec kitchen converge mig-autoscaler
61+
bundle exec kitchen verify mig-autoscaler
62+
bundle exec kitchen destroy mig-autoscaler
6363
```
6464

6565
## Permissions

build/docker/kitchen_terraform/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ FROM $BASE_IMAGE
1919
RUN apk add --no-cache \
2020
ca-certificates=20171114-r3
2121

22-
WORKDIR /opt/kitchen
22+
WORKDIR $APP_BASE_DIR/workdir
2323
COPY Gemfile .
24-
2524
RUN bundle install
2625

2726
RUN gcloud components install beta --quiet
2827
RUN gcloud components install alpha --quiet
29-
30-
WORKDIR $APP_BASE_DIR/workdir

examples/instance_template/additional_disks/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ module "instance_template" {
3535
boot = "false"
3636
},
3737
{
38-
disk_size_gb = 20
38+
disk_size_gb = 10
3939
disk_type = "pd-standard"
4040
auto_delete = "true"
4141
boot = "false"
4242
},
4343
{
44-
disk_size_gb = 30
44+
disk_size_gb = 10
4545
disk_type = "pd-standard"
4646
auto_delete = "true"
4747
boot = "false"

modules/mig/variables.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ variable "update_policy" {
5454
default = []
5555
}
5656

57-
##############
58-
# Autohealing
59-
##############
60-
6157
##############
6258
# Healthcheck
6359
##############

modules/project_services/README.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

modules/project_services/main.tf

Lines changed: 0 additions & 25 deletions
This file was deleted.

modules/project_services/outputs.tf

Lines changed: 0 additions & 20 deletions
This file was deleted.

modules/project_services/variables.tf

Lines changed: 0 additions & 40 deletions
This file was deleted.

test/integration/mig_autoscaler/controls/mig_autoscaler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
end
8383
end
8484

85-
describe "autoscaled" do
86-
it "should be yes" do
85+
describe "autoscaling" do
86+
it "should be enabled" do
8787
expect(data[0]['autoscaled']).to eq("yes")
8888
end
8989
end

0 commit comments

Comments
 (0)