diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-12 17:17:30 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-12 17:17:30 +0200 |
| commit | e40a63f465bf2ad045afd054b7a27ffe8eed5296 (patch) | |
| tree | 3f905af228e6e66fa2f8a6f28e6d1b087a37c029 /molecule/ubuntu/Dockerfile.j2 | |
| parent | 5c0d85530d78788c309138783d824ed14e8ec718 (diff) | |
Fix the testing of gateway role in containers/CI
Diffstat (limited to 'molecule/ubuntu/Dockerfile.j2')
| -rw-r--r-- | molecule/ubuntu/Dockerfile.j2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/molecule/ubuntu/Dockerfile.j2 b/molecule/ubuntu/Dockerfile.j2 index 37199b55..a8e90a48 100644 --- a/molecule/ubuntu/Dockerfile.j2 +++ b/molecule/ubuntu/Dockerfile.j2 @@ -8,7 +8,7 @@ ENV container docker RUN apt-get update \ && apt-get install -y --no-install-recommends \ - locales systemd avahi-daemon python3 iproute2 ifupdown \ + locales systemd avahi-daemon python3 iproute2 ifupdown udev \ && rm -Rf /var/lib/apt/lists/* \ && rm -Rf /usr/share/doc \ && rm -Rf /usr/share/man \ @@ -17,10 +17,10 @@ RUN apt-get update \ # Fix potential UTF-8 errors with ansible-test. RUN locale-gen en_US.UTF-8 -# Remove unnecessary getty and udev targets that result in high CPU usage when using +# Remove unnecessary getty target that result in high CPU usage when using # multiple containers with Molecule (https://github.com/ansible/molecule/issues/1104) -RUN rm -f /lib/systemd/system/systemd*udev* \ - && rm -f /lib/systemd/system/getty.target +# Keeping the udev because the gateway role depends on that +RUN rm -f /lib/systemd/system/getty.target # Mimic Ubuntu OS default boot (for testing) RUN systemctl enable avahi-daemon |
