File tree Expand file tree Collapse file tree 5 files changed +67
-1
lines changed Expand file tree Collapse file tree 5 files changed +67
-1
lines changed Original file line number Diff line number Diff line change 31
31
DISTRIBUTION=ubuntu-upstart
32
32
DIST_VERSION=14.04
33
33
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
34
58
- >
35
59
DISTRIBUTION=centos
36
60
DIST_VERSION=6-builded
Original file line number Diff line number Diff line change 3
3
- name : Include OS-specific variables
4
4
include_vars : " {{ item }}"
5
5
with_first_found :
6
+ - " {{ ansible_distribution_release }}.yml"
6
7
- " {{ ansible_distribution }}.yml"
7
8
- " {{ ansible_os_family }}.yml"
8
9
9
- - name : Include installation on Debian-based OS
10
+ - name : Include installation tasks
10
11
include : " install.{{ ansible_os_family | lower }}.yml"
11
12
tags : [mongodb]
12
13
Original file line number Diff line number Diff line change
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]
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ mongodb_package : mongodb
You can’t perform that action at this time.
0 commit comments