Skip to content

Commit de80ca4

Browse files
committed
Add debian testing
1 parent f7cc7e9 commit de80ca4

File tree

5 files changed

+67
-1
lines changed

5 files changed

+67
-1
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,30 @@ env:
3131
DISTRIBUTION=ubuntu-upstart
3232
DIST_VERSION=14.04
3333
MONGODB_VERSION=3.2
34+
- >
35+
DISTRIBUTION=debian
36+
DIST_VERSION=9-builded
37+
MONGODB_VERSION=3.6
38+
- >
39+
DISTRIBUTION=debian
40+
DIST_VERSION=9-builded
41+
MONGODB_VERSION=3.4
42+
- >
43+
DISTRIBUTION=debian
44+
DIST_VERSION=9-builded
45+
MONGODB_VERSION=3.2
46+
- >
47+
DISTRIBUTION=debian
48+
DIST_VERSION=8-builded
49+
MONGODB_VERSION=3.6
50+
- >
51+
DISTRIBUTION=debian
52+
DIST_VERSION=8-builded
53+
MONGODB_VERSION=3.4
54+
- >
55+
DISTRIBUTION=debian
56+
DIST_VERSION=8-builded
57+
MONGODB_VERSION=3.2
3458
- >
3559
DISTRIBUTION=centos
3660
DIST_VERSION=6-builded

tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
- name: Include OS-specific variables
44
include_vars: "{{ item }}"
55
with_first_found:
6+
- "{{ ansible_distribution_release }}.yml"
67
- "{{ ansible_distribution }}.yml"
78
- "{{ ansible_os_family }}.yml"
89

9-
- name: Include installation on Debian-based OS
10+
- name: Include installation tasks
1011
include: "install.{{ ansible_os_family | lower }}.yml"
1112
tags: [mongodb]
1213

tests/Dockerfile.debian_8-builded

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM debian:8
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt update && \
6+
apt install --yes python-minimal && \
7+
rm /lib/systemd/system/[email protected]

tests/Dockerfile.debian_9-builded

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM debian:9
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt update && \
6+
apt install --yes python-minimal systemd gnupg
7+
8+
RUN cd /lib/systemd/system/sysinit.target.wants/ && \
9+
ls | grep -v systemd-tmpfiles-setup.service | xargs rm -f && \
10+
rm -f /lib/systemd/system/sockets.target.wants/*udev* && \
11+
systemctl mask -- \
12+
tmp.mount \
13+
etc-hostname.mount \
14+
etc-hosts.mount \
15+
etc-resolv.conf.mount \
16+
-.mount \
17+
swap.target \
18+
getty.target \
19+
getty-static.service \
20+
dev-mqueue.mount \
21+
cgproxy.service \
22+
systemd-tmpfiles-setup-dev.service \
23+
systemd-remount-fs.service \
24+
systemd-ask-password-wall.path \
25+
systemd-logind.service && \
26+
systemctl set-default multi-user.target || true
27+
28+
RUN sed -ri /etc/systemd/journald.conf \
29+
-e 's!^#?Storage=.*!Storage=volatile!'
30+
31+
RUN ln -s /lib/systemd/systemd /sbin/init

vars/stretch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
3+
mongodb_package: mongodb

0 commit comments

Comments
 (0)