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:
Grzegorz Koper 2023-11-06 10:40:18 +01:00
parent 9836fa7e6c
commit 9146fdbc41
4 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@
build:
path: "{{ molecule_ephemeral_directory }}"
dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}"
network: host
force_source: "{{ item.item.force | default(true) }}"
force_tag: "{{ item.item.force | default(true) }}"
with_items: "{{ platforms.results }}"

View File

@ -10,6 +10,7 @@ lint: |
platforms:
- name: centos-stream8
image: quay.io/centos/centos:stream8
network_mode: host
provisioner:
name: ansible
lint:

View File

@ -30,6 +30,7 @@
build:
path: "{{ molecule_ephemeral_directory }}"
dockerfile: "{{ item.item.dockerfile | default(item.invocation.module_args.dest) }}"
network: host
force_source: "{{ item.item.force | default(true) }}"
force_tag: "{{ item.item.force | default(true) }}"
with_items: "{{ platforms.results }}"

View File

@ -10,6 +10,7 @@ lint: |
platforms:
- name: centos-stream8
image: quay.io/centos/centos:stream8
network_mode: host
provisioner:
name: ansible
inventory: