terraform-google-modules / terraform-google-memorystore

Creates a fully functional Google Memorystore (redis) instance
https://registry.terraform.io/modules/terraform-google-modules/memorystore/google
Apache License 2.0
43 stars 103 forks source link

Fix make `docker_create` #8

Closed ivankorn closed 5 years ago

ivankorn commented 5 years ago

make docker_create fail with fixed image variable reported in #6

[12:03][user@host:~/workspace/google/terraform-google-memorystore]$ make docker_create
docker run --rm -it \
    -v /home/data/workspace/google/terraform-google-memorystore:/cftk/workdir \
    gcr.io/cloud-foundation-cicd/cft/kitchen-terraform:0.11.10_216.0.0_1.19.1_0.1.10 \
    /bin/bash -c "kitchen create"
Unable to find image 'gcr.io/cloud-foundation-cicd/cft/kitchen-terraform:0.11.10_216.0.0_1.19.1_0.1.10' locally
0.11.10_216.0.0_1.19.1_0.1.10: Pulling from cloud-foundation-cicd/cft/kitchen-terraform
4fe2ade4980c: Already exists 
dc5149ad8262: Already exists 
ffeb2951944c: Already exists 
64bf8d66a767: Already exists 
ae6f18fcf67a: Pull complete 
8a216d1f66db: Pull complete 
650a0a2765e2: Pull complete 
81147565952f: Pull complete 
680735e50e2b: Pull complete 
ec960d4913f2: Pull complete 
95b9bce10cfc: Pull complete 
8d2a3b918f9e: Pull complete 
3a691adb2e2e: Pull complete 
94e0f3d8e738: Pull complete 
Digest: sha256:6a24707d0396f7898a24dbef28315401cb8459a68bd4d4d1d8db1688e8c27502
Status: Downloaded newer image for gcr.io/cloud-foundation-cicd/cft/kitchen-terraform:0.11.10_216.0.0_1.19.1_0.1.10
-----> Starting Kitchen (v1.23.5)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::UserError
>>>>>> Message: Kitchen YAML file /cft/workdir/.kitchen.yml does not exist.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

make: *** [Makefile:124: docker_create] Error 20
ivankorn commented 5 years ago

Fixed in 0.12 in scope of #4 commit

[14:46][user@host:~/workspace/google/terraform-google-memorystore]$ make docker_create 
docker run --rm -it \
    -e SERVICE_ACCOUNT_JSON \
    -e CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE=credentials.json \
    -e GOOGLE_APPLICATION_CREDENTIALS=credentials.json \
    -v /home/data/workspace/google/terraform-google-memorystore:/cft/workdir \
    gcr.io/cloud-foundation-cicd/cft/kitchen-terraform:2.3.0 \
    /bin/bash -c "kitchen create"
Activated service account credentials for: [project-factory-9942@gl-ivankorniienko-seed.iam.gserviceaccount.com]
-----> Starting Kitchen (v1.24.0)
-----> Creating <minimal-local>...
       Terraform v0.12.3
       + provider.google v2.11.0

       Your version of Terraform is out of date! The latest version
       is 0.12.5. You can update by downloading from www.terraform.io/downloads.html
$$$$$$ Running command `terraform init -input=false -lock=true -lock-timeout=0s  -upgrade -force-copy -backend=true  -get=true -get-plugins=true -verify-plugins=true` in directory /cft/workdir/test/fixtures/minimal
       Upgrading modules...
       - memstore in ../../..

       Initializing the backend...

       Initializing provider plugins...

       The following providers do not have any version constraints in configuration,
       so the latest version was installed.

       To prevent automatic upgrades to new major versions that may contain breaking
       changes, it is recommended to add version = "..." constraints to the
       corresponding provider blocks in configuration, with the constraint strings
       suggested below.

       * provider.google: version = "~> 2.11"

       Terraform has been successfully initialized!
$$$$$$ Running command `terraform workspace select kitchen-terraform-minimal-local` in directory /cft/workdir/test/fixtures/minimal
       Finished creating <minimal-local> (0m1.20s).
-----> Kitchen is finished. (0m2.87s)