Skip to content

Commit

Permalink
Merge pull request #323 from test-kitchen/tas50/amazon
Browse files Browse the repository at this point in the history
Add support for Amazon Linux
  • Loading branch information
tas50 authored Mar 15, 2019
2 parents c5e86e8 + 4938c75 commit bac1803
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ test/version_tmp
tmp
.kitchen/
.kitchen.local.yml
Dockerfile*
11 changes: 7 additions & 4 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ provisioner:
name: dummy

platforms:
- name: ubuntu-14.04
- name: amazonlinux-2
- name: ubuntu-16.04
- name: ubuntu-18.04
- name: fedora-latest
- name: centos-6
- name: centos-7
- name: oraclelinux-6
- name: oraclelinux-7
- name: debian-8
- name: opensuse-42.2
- name: debian-9
- name: opensuse-42.3
driver:
image: opensuse:42.2
image: opensuse:42.3
# - name: arch
# driver:
# image: base/archlinux
Expand All @@ -43,7 +46,7 @@ suites:
driver:
build_context: false
- name: capabilities
excludes: [arch,unknown,centos-7,centos-6,oraclelinux-6,oraclelinux-7,dockerfile,opensuse-42.2]
includes: [debian-8,debian-9,ubuntu-16.04,ubuntu-18.04]
driver:
provision_command:
- curl -L https://www.chef.io/chef/install.sh | bash
Expand Down
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
sudo: required
dist: trusty
dist: xenial
language: ruby
cache: bundler

rvm:
- "2.3.1"
- "2.4.3"
- "2.5.1"
- 2.3.8
- 2.4.5
- 2.5.4
- 2.6.2

services:
- docker
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ Examples:
```yaml
---
platforms:
- name: ubuntu-12.04
- name: centos-6.4
- name: ubuntu-18.04
- name: centos-7
```
This will effectively generate a configuration similar to:
```yaml
---
platforms:
- name: ubuntu-12.04
- name: ubuntu-18.04
driver_config:
image: ubuntu:12.04
image: ubuntu:18.04
platform: ubuntu
- name: centos-6.4
- name: centos-7
driver_config:
image: centos:6.4
image: centos:7
platform: centos
```
Expand Down Expand Up @@ -129,8 +129,9 @@ Configuration section for more details).
The platform of the chosen image. This is used to properly bootstrap the
suite container for Test Kitchen. Kitchen Docker currently supports:

* `arch`
* `debian` or `ubuntu`
* `rhel` or `centos`
* `amazonlinux`, `rhel`, `centos`, `fedora` or `oraclelinux`
* `gentoo` or `gentoo-paludis`
* `opensuse` or `sles`

Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/driver/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def build_dockerfile
RUN apt-get install -y sudo openssh-server curl lsb-release
eos
config[:disable_upstart] ? disable_upstart + packages : packages
when 'rhel', 'centos', 'fedora', 'oraclelinux'
when 'rhel', 'centos', 'fedora', 'oraclelinux', 'amazonlinux'
<<-eos
ENV container docker
RUN yum clean all
Expand Down

0 comments on commit bac1803

Please # to comment.