* the tests is quite old since it moved from upstreamfirst * lots of new cases are added, like option 'run', 'inspect' etc * save log to TEST_ARTIFACTS when the variable is set * always run tests with latest runc built from source * merge task and task status to same line
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
---
|
|
- name: install required packages for testings
|
|
package:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
with_items:
|
|
- docker
|
|
- python-docker-py
|
|
- buildah
|
|
- docker-distribution
|
|
- ostree
|
|
- httpd
|
|
- libselinux-python
|
|
- golang
|
|
- make
|
|
- libseccomp-devel
|
|
|
|
- name: start docker daemon
|
|
systemd: state=started name=docker
|
|
|
|
- name: create /ostree/repo
|
|
file: path=/ostree/repo state=directory
|
|
|
|
- name: ensure docker-distribution service is running
|
|
systemd: state=started name=docker-distribution
|
|
|
|
- name: create tmp directory for buildah testing
|
|
file: path=/tmp/buildah/bud state=directory
|
|
|
|
- name: download Dockerfile for hello-world from github
|
|
get_url:
|
|
url: https://raw.githubusercontent.com/docker-library/hello-world/master/amd64/hello-world/Dockerfile
|
|
dest: /tmp/buildah/bud/Dockerfile
|
|
force: yes
|
|
|
|
- name: download hello for the Dockerfile
|
|
get_url:
|
|
url: https://github.com/docker-library/hello-world/raw/master/amd64/hello-world/hello
|
|
dest: /tmp/buildah/bud/hello
|
|
force: yes
|
|
mode: 0755
|
|
|
|
- name: create a bud directory in /var/www/html
|
|
file: path=/var/www/html/bud state=directory
|
|
|
|
- name: archive dockerfile into httpd directory
|
|
command: tar zcvf /var/www/html/bud/Dockerfile.tar.gz Dockerfile hello
|
|
args:
|
|
chdir: /tmp/buildah/bud
|
|
# Disables the following warning:
|
|
# Consider using unarchive module rather than running tar
|
|
warn: no
|
|
|
|
- name: start httpd service
|
|
systemd: state=started name=httpd
|