summaryrefslogtreecommitdiffstats
path: root/tests/roles/prepare-env/tasks
diff options
context:
space:
mode:
authorGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
committerGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
commit619163f3a6ef9c19a644bd314382b0ff6edbddbc (patch)
treeb620ef957f3ccf2de3c3e60a2165244707ccdf0f /tests/roles/prepare-env/tasks
parent4770dbb8bf1af8c6a58c2cc154838bc613d939e4 (diff)
downloadbuildah-master.tar.gz
buildah-master.tar.xz
buildah-master.zip
Sync new tests from upstreamfirstHEADmaster
* 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 Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
Diffstat (limited to 'tests/roles/prepare-env/tasks')
-rw-r--r--tests/roles/prepare-env/tasks/main.yml24
1 files changed, 19 insertions, 5 deletions
diff --git a/tests/roles/prepare-env/tasks/main.yml b/tests/roles/prepare-env/tasks/main.yml
index bc46794..ff92b87 100644
--- a/tests/roles/prepare-env/tasks/main.yml
+++ b/tests/roles/prepare-env/tasks/main.yml
@@ -11,6 +11,9 @@
- ostree
- httpd
- libselinux-python
+ - golang
+ - make
+ - libseccomp-devel
- name: start docker daemon
systemd: state=started name=docker
@@ -21,21 +24,32 @@
- name: ensure docker-distribution service is running
systemd: state=started name=docker-distribution
-- name: creates directory buildah testing
+- name: create tmp directory for buildah testing
file: path=/tmp/buildah/bud state=directory
-- name: download Dockerfile
+- name: download Dockerfile for hello-world from github
get_url:
- url: https://github.com/fedora-cloud/Fedora-Dockerfiles/raw/master/nginx/Dockerfile
+ url: https://raw.githubusercontent.com/docker-library/hello-world/master/amd64/hello-world/Dockerfile
dest: /tmp/buildah/bud/Dockerfile
+ force: yes
-- name: creates a bud directory in /var/www/html
+- 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
+ 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