Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petersonwsantos/chefdk_kitchen-google
Docker Hub - ChefDK with Kitchen Google Cloud Plataform
https://github.com/petersonwsantos/chefdk_kitchen-google
Last synced: about 15 hours ago
JSON representation
Docker Hub - ChefDK with Kitchen Google Cloud Plataform
- Host: GitHub
- URL: https://github.com/petersonwsantos/chefdk_kitchen-google
- Owner: petersonwsantos
- Created: 2017-11-16T18:38:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-16T21:10:44.000Z (about 7 years ago)
- Last Synced: 2024-05-31T04:42:41.529Z (6 months ago)
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChefDK with Kitchen Google Cloud Plataform
# Docker image
Supported tags and respective Dockerfile links
Base Image | Tag | Backed | Dockerfile | Status
------------|-------------|--------|------------------|-------------------------------------
ubuntu:16.04 | latest | chefdf=2.3.4 cloud-sdk/ gcloud=178.0.0 |( [ Dockerfile ](https://github.com/petersonwsantos/chefdk_kitchen-google/blob/master/Dockerfile) ) | [![](https://images.microbadger.com/badges/image/petersonwsantos/chefdk_kitchen-google.svg)](https://microbadger.com/images/petersonwsantos/chefdk_kitchen-google "Get your own image badge on microbadger.com")How to Use:
```
$ cd my_dev_code/$ docker run -it --name chef_playground \
-v ~/.config/gcloud:/root/.config/gcloud \
-v ~/.ssh:/root/.ssh \
--mount type=bind,source="$(pwd)",target=/cookbook \
petersonwsantos/chefdk_kitchen-google
```
Explanation command above:
```
-v ~/.config/gcloud:/root/.config/gcloud \# Creates a volume for my gcloud credentials created earlier in my notebook. If you prefer you can take this line and run "gcloud init" directly in the container.
```
```
-v ~/.ssh:/root/.ssh \
`
# Creates volume for my authentication key, that will be used in ".kitchen.yml"
( ssh_key:~/.ssh/key_google_compute_engine).
``````
--mount type=bind,source="$(pwd)",target=/cookbook \# Mount volume for my cookbooks's code ( $ cd my_dev_code/ ).
```.kitchen.yml
```yaml
---
driver:
name: gce
# Google Cloud Plataform - Project ID <---------------------------
project: Project-666
zone: us-west1-c
# Google Cloud Plataform - LOgin <----------------------------
email: [email protected]
machine_type: g1-small
tags:
- devteam
- test-kitchen
service_account_scopes:
- devstorage.read_write
- userinfo.emailprovisioner:
name: chef_zeroverifier:
name: inspectransport:
# Google Cloud Plataform - Enter Compute Engine / Metadata / add USER and SSH KEY <------------------------------------
# User
username: login_of_metadata_key
# Key
ssh_key:
- ~/.ssh/key_google_compute_engineplatforms:
- name: ubuntu-16.04
driver:
image_project: ubuntu-os-cloud
image_family: ubuntu-1604-lts
metadata:
application: ubuntu
release: a
version: 1604```