Skip to content

Commit

Permalink
TEMPDBG: break dockerfile run into separate parts
Browse files Browse the repository at this point in the history
  • Loading branch information
spoore1 committed Jul 11, 2024
1 parent 6b09366 commit 41f6457
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/intg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
env:
IMAGE: fedora-img
CONTAINER: fedora-container
XDG_RUNTIME_DIR: ''
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 41f6457

Please sign in to comment.