Add debian testing

This commit is contained in:
Sergei Antipov 2018-02-23 00:43:04 +07:00
parent f7cc7e901b
commit de80ca4284
5 changed files with 67 additions and 1 deletions

View File

@ -31,6 +31,30 @@ env:
DISTRIBUTION=ubuntu-upstart DISTRIBUTION=ubuntu-upstart
DIST_VERSION=14.04 DIST_VERSION=14.04
MONGODB_VERSION=3.2 MONGODB_VERSION=3.2
- >
DISTRIBUTION=debian
DIST_VERSION=9-builded
MONGODB_VERSION=3.6
- >
DISTRIBUTION=debian
DIST_VERSION=9-builded
MONGODB_VERSION=3.4
- >
DISTRIBUTION=debian
DIST_VERSION=9-builded
MONGODB_VERSION=3.2
- >
DISTRIBUTION=debian
DIST_VERSION=8-builded
MONGODB_VERSION=3.6
- >
DISTRIBUTION=debian
DIST_VERSION=8-builded
MONGODB_VERSION=3.4
- >
DISTRIBUTION=debian
DIST_VERSION=8-builded
MONGODB_VERSION=3.2
- > - >
DISTRIBUTION=centos DISTRIBUTION=centos
DIST_VERSION=6-builded DIST_VERSION=6-builded

View File

@ -3,10 +3,11 @@
- name: Include OS-specific variables - name: Include OS-specific variables
include_vars: "{{ item }}" include_vars: "{{ item }}"
with_first_found: with_first_found:
- "{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution }}.yml" - "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml" - "{{ ansible_os_family }}.yml"
- name: Include installation on Debian-based OS - name: Include installation tasks
include: "install.{{ ansible_os_family | lower }}.yml" include: "install.{{ ansible_os_family | lower }}.yml"
tags: [mongodb] tags: [mongodb]

View File

@ -0,0 +1,7 @@
FROM debian:8
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install --yes python-minimal && \
rm /lib/systemd/system/getty@.service

View File

@ -0,0 +1,31 @@
FROM debian:9
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install --yes python-minimal systemd gnupg
RUN cd /lib/systemd/system/sysinit.target.wants/ && \
ls | grep -v systemd-tmpfiles-setup.service | xargs rm -f && \
rm -f /lib/systemd/system/sockets.target.wants/*udev* && \
systemctl mask -- \
tmp.mount \
etc-hostname.mount \
etc-hosts.mount \
etc-resolv.conf.mount \
-.mount \
swap.target \
getty.target \
getty-static.service \
dev-mqueue.mount \
cgproxy.service \
systemd-tmpfiles-setup-dev.service \
systemd-remount-fs.service \
systemd-ask-password-wall.path \
systemd-logind.service && \
systemctl set-default multi-user.target || true
RUN sed -ri /etc/systemd/journald.conf \
-e 's!^#?Storage=.*!Storage=volatile!'
RUN ln -s /lib/systemd/systemd /sbin/init

3
vars/stretch.yml Normal file
View File

@ -0,0 +1,3 @@
---
mongodb_package: mongodb