Fix local (non-root) docker build support
This was broken recently in a2229e738a
where the buildah support hard coded the modify command so that
it required a 'sudo' for the docker version.
Docker does not always require root for these commands. Also,
need to look further as to why buildah required this.
Change-Id: Iae231ec8bc8dc2822fc3d6bfab593cff3c599910
This commit is contained in:
parent
678b93fe30
commit
b47b569b3c
|
@ -32,6 +32,7 @@
|
|||
|
||||
- name: Modify image
|
||||
command: "{{ build_commands[container_build_tool] }} --tag {{ target_image | default(source_image) }}{{ modified_append_tag }} --file Dockerfile.modified --network host ./"
|
||||
become: true
|
||||
#FIXME: buildah should not required root commands to build an image
|
||||
become: "{{ true if build_commands[container_build_tool] == 'buildah' else false }}"
|
||||
args:
|
||||
chdir: "{{ modify_dir_path }}"
|
||||
|
|
Loading…
Reference in New Issue