network/.github/Dockerfile.c8s-network-role
Gris Ge daac665933 CI: Enable integration test in Github Action
Using container to run `ansible-playbook` against localhost.

To debug it, try

```bash
sudo DEBUG=1 ./.github/run_test.sh tests_bond_nm.yml
```

Attached two container files for CentOS 8 and CentOS Stream 8.
The container image is stored under quay:
    https://quay.io/organization/linux_system_roles

Only a small mount of tests has been chose in order to give stable CI
test feedback.

The github action CI will run two instances using above container image.

Signed-off-by: Gris Ge <fge@redhat.com>
2021-07-28 19:50:09 +08:00

12 lines
432 B
Text

FROM quay.io/centos/centos:stream8
RUN dnf -y install dnf-plugins-core epel-release && \
dnf config-manager --set-enabled powertools && \
dnf -y upgrade && \
dnf -y install NetworkManager NetworkManager-wifi \
procps-ng iproute ansible openssh-server openssh-clients systemd-udev \
dnsmasq hostapd wpa_supplicant openssl ethtool iputils python3-gobject-base
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/usr/sbin/init"]