Simplify ansible-lint config and fix Docker builds: Ubuntu DEBIAN_FRONTEND, CentOS --allowerasing
This commit is contained in:
3
.github/workflows/ci-cd.yml
vendored
3
.github/workflows/ci-cd.yml
vendored
@@ -79,6 +79,7 @@ jobs:
|
||||
run: |
|
||||
docker build -t test-ubuntu:${{ matrix.ubuntu_version }} -f- . <<EOF
|
||||
FROM ubuntu:${{ matrix.ubuntu_version }}
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y \
|
||||
python3 python3-pip sudo openssh-server curl \
|
||||
&& apt-get clean \
|
||||
@@ -212,7 +213,7 @@ jobs:
|
||||
docker build -t test-centos:stream9 -f- . <<EOF
|
||||
FROM quay.io/centos/centos:stream9
|
||||
RUN dnf update -y && dnf install -y \
|
||||
python3 python3-pip sudo openssh-server curl \
|
||||
python3 python3-pip sudo openssh-server --allowerasing \
|
||||
&& dnf clean all
|
||||
RUN useradd -m -s /bin/bash testuser && \
|
||||
echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
||||
|
||||
Reference in New Issue
Block a user