summaryrefslogtreecommitdiffstats
path: root/tests/roles/binary
diff options
context:
space:
mode:
authorYevhenii Shapovalov <yshapova@redhat.com>2017-12-12 13:28:04 +0200
committerYevhenii Shapovalov <yshapova@redhat.com>2017-12-20 18:19:30 +0200
commitdfee2f675f2c43e589eb208a1cb9b39494a3cc22 (patch)
tree85894a09faa016b90ee39c96cc472db623f8831d /tests/roles/binary
parent7cae8ede6d446bc7824c1f95a5e6cca7a8e1a8e8 (diff)
downloadbuildah-dfee2f675f2c43e589eb208a1cb9b39494a3cc22.tar.gz
buildah-dfee2f675f2c43e589eb208a1cb9b39494a3cc22.tar.xz
buildah-dfee2f675f2c43e589eb208a1cb9b39494a3cc22.zip
Diffstat (limited to 'tests/roles/binary')
-rw-r--r--tests/roles/binary/tasks/buildah.yml15
-rw-r--r--tests/roles/binary/tasks/main.yml4
-rw-r--r--tests/roles/binary/tasks/runc.yml16
3 files changed, 35 insertions, 0 deletions
diff --git a/tests/roles/binary/tasks/buildah.yml b/tests/roles/binary/tasks/buildah.yml
new file mode 100644
index 0000000..5122105
--- /dev/null
+++ b/tests/roles/binary/tasks/buildah.yml
@@ -0,0 +1,15 @@
+---
+- name: pull latest buildah source from github
+ git:
+ repo: https://github.com/projectatomic/buildah
+ dest: "{{ HOME }}/go/src/github.com/projectatomic/buildah"
+
+- name: make binary for buildah
+ command: make
+ args:
+ chdir: "{{ HOME }}/go/src/github.com/projectatomic/buildah"
+
+- name: install buildah to /usr/local/bin
+ command: make install
+ args:
+ chdir: "{{ HOME }}/go/src/github.com/projectatomic/buildah"
diff --git a/tests/roles/binary/tasks/main.yml b/tests/roles/binary/tasks/main.yml
new file mode 100644
index 0000000..771725d
--- /dev/null
+++ b/tests/roles/binary/tasks/main.yml
@@ -0,0 +1,4 @@
+---
+- import_tasks: runc.yml
+
+- import_tasks: buildah.yml
diff --git a/tests/roles/binary/tasks/runc.yml b/tests/roles/binary/tasks/runc.yml
new file mode 100644
index 0000000..d64d5fb
--- /dev/null
+++ b/tests/roles/binary/tasks/runc.yml
@@ -0,0 +1,16 @@
+---
+- name: pull latest runc source from github
+ git:
+ repo: https://github.com/opencontainers/runc
+ dest: "{{ HOME }}/go/src/github.com/opencontainers/runc"
+
+- name: building runc for buildah runtime
+ command: make
+ args:
+ chdir: "{{ HOME }}/go/src/github.com/opencontainers/runc"
+
+- name: copy runc to /usr/bin
+ copy:
+ remote_src: True
+ src: "{{ HOME }}/go/src/github.com/opencontainers/runc/runc"
+ dest: /usr/bin/runc