Skip to content

Commit

Permalink
Set kitchen-transport-speedy as transport for ec2 kitchen
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-giordano committed Apr 14, 2023
1 parent fb6e593 commit e3e5c6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ end

group :aws do
gem 'kitchen-ec2'
gem 'kitchen-transport-speedy'
end
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ This repo contains the AWS ParallelCluster Chef cookbook used in AWS ParallelClu
## About kitchen tests

Kitchen is used to automatically test cookbooks across any combination of platforms and test suites.
It requires cinc-workstation to be installed on your environment:
It requires cinc-workstation to be installed on your environment:

curl -L https://omnitruck.cinc.sh/install.sh | sudo bash -s -- -P cinc-workstation -v 23
`curl -L https://omnitruck.cinc.sh/install.sh | sudo bash -s -- -P cinc-workstation -v 23`

To speedup the transfer of files when kitchens are run on ec2 instances, the [transport](https://docs.chef.io/workstation/config_yml_kitchen/#transport-settings) selected is `kitchen-transport-speedy` https://github.com/criteo/kitchen-transport-speedy.

In order to test on docker containers, you also need docker installed on your environment.
To install `kitchen-transport-speedy` in the kitchen embedded ruby environment: `/opt/cinc-workstation/embedded/bin/gem install kitchen-transport-speedy`

In order to test on docker containers, you also need docker installed on your environment.

### Helpers

Expand Down
1 change: 1 addition & 0 deletions kitchen.ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ driver:
transport:
ssh_key: <%= ENV['KITCHEN_SSH_KEY_PATH'] %>
compression: true
name: speedy_ssh

provisioner:
name: chef_zero
Expand Down

0 comments on commit e3e5c6a

Please sign in to comment.