Skip to content

Commit 62ed7cc

Browse files
authored
Fixes geerlingguy#109: Add Docker test on Travis for Ubuntu 16.04. (geerlingguy#110)
1 parent 843c2bc commit 62ed7cc

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ env:
1414
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
1515
playbook: centos-7-test.yml
1616
DOCKER_VERSION: "1.9.1-0~trusty"
17+
- distribution: ubuntu
18+
version: 16.04
19+
init: /lib/systemd/systemd
20+
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
21+
playbook: test.yml
22+
DOCKER_VERSION: "1.9.1-0~trusty"
1723
- distribution: ubuntu
1824
version: 14.04
1925
init: /sbin/init

tests/Dockerfile.ubuntu-16.04

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ubuntu:16.04
2+
3+
# Install dependencies.
4+
RUN apt-get update -qq -y
5+
RUN apt-get install -qq -y python-software-properties software-properties-common \
6+
rsyslog systemd systemd-cron sudo
7+
RUN sed -i 's/^\($ModLoad imklog\)/#\1/' /etc/rsyslog.conf
8+
#ADD etc/rsyslog.d/50-default.conf /etc/rsyslog.d/50-default.conf
9+
10+
# Install Ansible
11+
RUN add-apt-repository -y ppa:ansible/ansible
12+
RUN apt-get update -y
13+
RUN apt-get install -y ansible git-core
14+
15+
COPY initctl_faker .
16+
RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl
17+
18+
# Install Ansible inventory file
19+
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

0 commit comments

Comments
 (0)