From 7f832ba108fde3b3ab1c40267f95e55a2a34497b Mon Sep 17 00:00:00 2001 From: Thiago Almeida Date: Fri, 17 May 2019 11:28:27 +0200 Subject: [PATCH] Adding tests for amazonlinux:2 --- .travis.yml | 5 ++++- tests/Dockerfile.amazonlinux_2-builded | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 tests/Dockerfile.amazonlinux_2-builded diff --git a/.travis.yml b/.travis.yml index 717d8b4..dea6ee5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/Dockerfile.amazonlinux_2-builded b/tests/Dockerfile.amazonlinux_2-builded new file mode 100644 index 0000000..b1628cb --- /dev/null +++ b/tests/Dockerfile.amazonlinux_2-builded @@ -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"]