Skip to content

Commit

Permalink
Add acceptance tests (docker) nodes for supported debian flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
vStone committed Nov 8, 2018
1 parent fc9452f commit 2e91cf1
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/acceptance/nodesets/docker-debian-8-systemd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
HOSTS:
debian-8-x64:
platform: debian-8-amd64
hypervisor: docker
image: debian:8
docker_preserve_image: true
docker_cmd: '["/sbin/init"]'
docker_image_commands:
- 'apt-get update && apt-get install -y net-tools wget locales strace lsof && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen'
- 'rm -rf /usr/sbin/policy-rc.d'
- 'systemctl mask -- tmp.mount etc-hostname.mount etc-hosts.mount etc-resolv.conf.mount -.mount swap.target dev-mqueue.mount cgproxy.service [email protected] getty-static.service systemd-udev-trigger.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'

CONFIG:
trace_limit: 200
type: aio
16 changes: 16 additions & 0 deletions spec/acceptance/nodesets/docker-debian-9-systemd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
HOSTS:
debian-9-x64:
platform: debian-9-amd64
hypervisor: docker
image: debian:stretch
docker_preserve_image: true
docker_cmd: '["/lib/systemd/systemd"]'
docker_image_commands:
- 'apt-get update && apt-get install -y systemd cron net-tools wget locales strace lsof && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen'
- 'rm -rf /usr/sbin/policy-rc.d'
- 'systemctl mask -- tmp.mount etc-hostname.mount etc-hosts.mount etc-resolv.conf.mount -.mount swap.target dev-mqueue.mount cgproxy.service [email protected] getty-static.service systemd-udev-trigger.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'

CONFIG:
trace_limit: 200
type: aio
32 changes: 32 additions & 0 deletions spec/acceptance/nodesets/docker-debian-9-sysvinit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
HOSTS:
debian-9-x64:
platform: debian-9-amd64
hypervisor: docker
image: debian:stretch
docker_preserve_image: true
docker_cmd: '["/sbin/init"]'
docker_image_commands:
- 'apt-get update && apt-get install -y sysvinit-core cron psmisc procps net-tools wget locales strace lsof && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen'
- 'apt-get remove -y --purge --auto-remove systemd'
- 'update-rc.d -f hwclock.sh remove || true'
- 'update-rc.d -f mountall-bootclean.sh remove || true'
- 'update-rc.d -f mountall.sh remove || true'
- 'update-rc.d -f checkfs.sh remove || true'
- 'update-rc.d -f checkroot.sh remove || true'
- 'update-rc.d -f motd remove || true'
- 'update-rc.d -f bootlogs remove || true'
- 'update-rc.d -f mountdevsubfs.sh remove || true'
- 'update-rc.d -f procps remove || true'
- 'update-rc.d -f hostname.sh remove || true'
- 'update-rc.d -f mountkernfs.sh remove || true'
- 'update-rc.d -f urandom remove || true'
- 'update-rc.d -f mountnfs-bootclean.sh remove || true'
- 'update-rc.d -f mountnfs.sh remove || true'
- 'update-rc.d -f umountnfs.sh remove || true'
- 'update-rc.d -f umountfs remove || true'
- 'update-rc.d -f umountroot remove || true'

CONFIG:
trace_limit: 200
type: aio
16 changes: 16 additions & 0 deletions spec/acceptance/nodesets/docker-ubuntu-16.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
HOSTS:
ubuntu-16.04-x64:
platform: ubuntu-16.04-amd64
hypervisor: docker
image: ubuntu:16.04
docker_preserve_image: true
docker_cmd: '["/lib/systemd/systemd"]'
docker_image_commands:
- 'apt-get update && apt-get install -y net-tools wget locales strace lsof && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen'
- 'rm -rf /usr/sbin/policy-rc.d'
- 'systemctl mask -- tmp.mount etc-hostname.mount etc-hosts.mount etc-resolv.conf.mount -.mount swap.target dev-mqueue.mount cgproxy.service [email protected] getty-static.service systemd-udev-trigger.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'

CONFIG:
trace_limit: 200
type: aio
16 changes: 16 additions & 0 deletions spec/acceptance/nodesets/docker-ubuntu-18.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
HOSTS:
ubuntu-18.04-x64:
platform: ubuntu-18.04-amd64
hypervisor: docker
image: ubuntu:18.04
docker_preserve_image: true
docker_cmd: '["/lib/systemd/systemd"]'
docker_image_commands:
- 'apt-get update && apt-get install -y net-tools wget locales strace lsof && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen'
- 'rm -rf /usr/sbin/policy-rc.d'
- 'systemctl mask -- tmp.mount etc-hostname.mount etc-hosts.mount etc-resolv.conf.mount -.mount swap.target dev-mqueue.mount cgproxy.service [email protected] getty-static.service systemd-udev-trigger.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'

CONFIG:
trace_limit: 200
type: aio

0 comments on commit 2e91cf1

Please sign in to comment.