2018-04-08 03:03:14 +00:00
|
|
|
---
|
|
|
|
- name: buildah copy
|
|
|
|
command: buildah copy nginxc-2 /tmp/buildah/bud/Dockerfile
|
|
|
|
|
|
|
|
- name: check buildah copy
|
|
|
|
command: ls {{mount.stdout}}/Dockerfile
|
|
|
|
|
|
|
|
- name: buildah copy to destination
|
|
|
|
command: buildah copy nginxc-2 /tmp/buildah/bud/Dockerfile /home
|
|
|
|
|
|
|
|
- name: check buildah copy to
|
|
|
|
command: ls {{mount.stdout}}/home/Dockerfile
|
|
|
|
|
|
|
|
- name: buildah copy URL
|
|
|
|
command: buildah copy nginxc-2 https://github.com/projectatomic/buildah/raw/master/README.md
|
|
|
|
|
|
|
|
- name: check buildah copy URL
|
|
|
|
command: ls {{mount.stdout}}/README.md
|
|
|
|
|
|
|
|
- name: buildah copy URL to destination
|
|
|
|
command: buildah copy nginxc-2 https://github.com/projectatomic/buildah/raw/master/README.md /home
|
|
|
|
|
|
|
|
- name: check buildah copy URL to destination
|
|
|
|
command: ls {{mount.stdout}}/home/README.md
|
|
|
|
|
|
|
|
- name: buildah copy dir
|
|
|
|
command: buildah copy nginxc-2 /tmp/buildah
|
|
|
|
|
|
|
|
- name: check buildah copy dir
|
2018-04-18 13:26:10 +00:00
|
|
|
command: ls {{mount.stdout}}/addcopy/README.md
|
2018-04-08 03:03:14 +00:00
|
|
|
|
|
|
|
- name: buildah copy dir to destination
|
2018-04-18 13:26:10 +00:00
|
|
|
command: buildah copy nginxc-2 /tmp/buildah /home
|
2018-04-08 03:03:14 +00:00
|
|
|
|
|
|
|
- name: check buildah copy dir to destination
|
2018-04-18 13:26:10 +00:00
|
|
|
command: ls {{mount.stdout}}/home/addcopy/README.md
|
|
|
|
|
|
|
|
- name: buildah copy with option chown
|
|
|
|
command: buildah copy --chown nginx:nginx nginxc-2 /tmp/buildah/bud /home
|
|
|
|
|
|
|
|
- name: check user after copy with option chown
|
|
|
|
command: buildah run nginxc-2 -- ls -l /home/hello
|
|
|
|
register: cst
|
|
|
|
failed_when: '"nginx" not in cst.stdout'
|