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 3b1842d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/intg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 3b1842d

Please sign in to comment.