diff --git a/.github/workflows/intg.yml b/.github/workflows/intg.yml index ee890d7..7535f46 100644 --- a/.github/workflows/intg.yml +++ b/.github/workflows/intg.yml @@ -11,11 +11,12 @@ jobs: env: IMAGE: fedora-img CONTAINER: fedora-container + XDG_RUNTIME_DIR: '' steps: - name: Checkout uses: actions/checkout@v2 - name: Build the Docker image - run: sudo podman build . --file Dockerfile.fedora --tag ${IMAGE} + run: sudo -E XDG_RUNTIME_DIR= podman build . --file Dockerfile.fedora --tag ${IMAGE} - name: Run the container run: sudo podman run --privileged --security-opt seccomp=unconfined --detach -p 80:80 --name=${CONTAINER} ${IMAGE} - name: Check the container is up diff --git a/Dockerfile.fedora b/Dockerfile.fedora index 7c2965e..57f6ef0 100644 --- a/Dockerfile.fedora +++ b/Dockerfile.fedora @@ -16,12 +16,12 @@ RUN dnf -y --nogpgcheck install autoconf \ glibc-locale-source \ glibc-langpack-ru \ cracklib-dicts \ - audit \ - && dnf clean all \ - && sed -i 's/.*PermitRootLogin .*/#&/g' /etc/ssh/sshd_config \ - && echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config \ - && sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ - && systemctl enable sshd + audit +RUN dnf clean all +RUN sed -i 's/.*PermitRootLogin .*/#&/g' /etc/ssh/sshd_config +RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config +RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd +RUN systemctl enable sshd EXPOSE 22 CMD [ "/sbin/init" ]