File tree Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ language: python
7
7
python :
8
8
- " 2.7"
9
9
env :
10
+ - >
11
+ DISTRIBUTION=ubuntu
12
+ DIST_VERSION=18_04-builded
13
+ MONGODB_VERSION=3.6
14
+ MONGODB_PACKAGE=mongodb
10
15
- >
11
16
DISTRIBUTION=ubuntu
12
17
DIST_VERSION=16_04-builded
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ MongoDB support matrix:
14
14
| ------------ | :-------------:| :-----------:| :-----------:| :-----------:|
15
15
| Ubuntu 14.04 | :no_entry : | :white_check_mark : | :white_check_mark : | :white_check_mark : |
16
16
| Ubuntu 16.04 | :no_entry : | :white_check_mark : | :white_check_mark : | :white_check_mark : |
17
+ | Ubuntu 18.04 | :no_entry : | :x : | :x : | :white_check_mark : |
17
18
| Debian 8.x | :no_entry : | :white_check_mark : | :white_check_mark : | :white_check_mark : |
18
19
| Debian 9.x | :no_entry : | :white_check_mark : | :x : | :white_check_mark : |
19
20
| RHEL 6.x | :no_entry : | :white_check_mark : | :white_check_mark : | :white_check_mark : |
Original file line number Diff line number Diff line change 23
23
when : (mongodb_package == 'mongodb-org' and
24
24
(mongodb_version is not defined
25
25
or mongodb_repository[mongodb_major_version] is not defined
26
- or mongodb_version != "3.6") and ansible_distribution_release == "stretch")
26
+ or mongodb_version != '3.6') and ansible_distribution_release == 'stretch')
27
+
28
+ - name : Fail when used wrong mongodb_version variable with Debian Stretch
29
+ fail :
30
+ msg : " mongodb_version variable should be '3.6' and mongodb_package should be 'mongodb' for Ubuntu 18.04"
31
+ when : ((mongodb_package == 'mongodb-org' or mongodb_version != '3.6')
32
+ and ansible_distribution_release == "bionic")
27
33
28
34
- name : Fail when used wrong mongodb_version variable
29
35
fail :
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:18.04
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!'
You can’t perform that action at this time.
0 commit comments