CI: Changing docker network driver in molecule
Setting network mode to host. Enables testing without additional configuration of the host. Change-Id: I46406d414290ed785a4644c88cbc76ff074e96a2
This commit is contained in:
parent
9836fa7e6c
commit
9146fdbc41
@ -29,6 +29,7 @@
|
|||||||
build:
|
build:
|
||||||
path: "{{ molecule_ephemeral_directory }}"
|
path: "{{ molecule_ephemeral_directory }}"
|
||||||
dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}"
|
dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}"
|
||||||
|
network: host
|
||||||
force_source: "{{ item.item.force | default(true) }}"
|
force_source: "{{ item.item.force | default(true) }}"
|
||||||
force_tag: "{{ item.item.force | default(true) }}"
|
force_tag: "{{ item.item.force | default(true) }}"
|
||||||
with_items: "{{ platforms.results }}"
|
with_items: "{{ platforms.results }}"
|
||||||
|
@ -10,6 +10,7 @@ lint: |
|
|||||||
platforms:
|
platforms:
|
||||||
- name: centos-stream8
|
- name: centos-stream8
|
||||||
image: quay.io/centos/centos:stream8
|
image: quay.io/centos/centos:stream8
|
||||||
|
network_mode: host
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
lint:
|
lint:
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
build:
|
build:
|
||||||
path: "{{ molecule_ephemeral_directory }}"
|
path: "{{ molecule_ephemeral_directory }}"
|
||||||
dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}"
|
dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}"
|
||||||
|
network: host
|
||||||
force_source: "{{ item.item.force | default(true) }}"
|
force_source: "{{ item.item.force | default(true) }}"
|
||||||
force_tag: "{{ item.item.force | default(true) }}"
|
force_tag: "{{ item.item.force | default(true) }}"
|
||||||
with_items: "{{ platforms.results }}"
|
with_items: "{{ platforms.results }}"
|
||||||
|
@ -10,6 +10,7 @@ lint: |
|
|||||||
platforms:
|
platforms:
|
||||||
- name: centos-stream8
|
- name: centos-stream8
|
||||||
image: quay.io/centos/centos:stream8
|
image: quay.io/centos/centos:stream8
|
||||||
|
network_mode: host
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
inventory:
|
inventory:
|
||||||
|
Loading…
Reference in New Issue
Block a user