Adding tests for amazonlinux:2

This commit is contained in:
Thiago Almeida 2019-05-17 11:28:27 +02:00
parent 45309059e9
commit 7f832ba108
2 changed files with 18 additions and 1 deletions

View File

@ -1,6 +1,5 @@
# .travis.yml
---
dist: trusty
sudo: required
language: python
@ -86,6 +85,10 @@ env:
DISTRIBUTION=centos
DIST_VERSION=7-builded
MONGODB_VERSION=3.4
- >
DISTRIBUTION=amazonlinux
DIST_VERSION=2-builded
MONGODB_VERSION=4.0
services:
- docker

View File

@ -0,0 +1,14 @@
FROM amazonlinux:2
# This is needed so that ansible managed to read "ansible_default_ipv4"
RUN yum install iproute -y
# This step is needed since standard CentOS docker image does not come with init-functions installed by default.
# This package seems to be required for Mongo 3.2 and downwards
RUN yum install initscripts -y
# we can has SSH
EXPOSE 22
# pepare for takeoff
CMD ["/usr/sbin/init"]