Skip to content

Commit

Permalink
Dockerfile rewrite - migrated to python on bookworm. Deleted compose …
Browse files Browse the repository at this point in the history
…files.
  • Loading branch information
SegFaulti4 committed Feb 7, 2024
1 parent f6bd884 commit e030d3e
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 319 deletions.
17 changes: 0 additions & 17 deletions docker/ansible_host_container/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions docker/ansible_host_container/src/add_key.sh

This file was deleted.

1 change: 0 additions & 1 deletion docker/ansible_host_container/src/anshostkey.pub

This file was deleted.

123 changes: 0 additions & 123 deletions docker/ansible_host_container/src/sshd_config

This file was deleted.

18 changes: 0 additions & 18 deletions docker/cotea_container/Dockerfile

This file was deleted.

16 changes: 0 additions & 16 deletions docker/cotea_container/src/configure_ssh.sh

This file was deleted.

22 changes: 0 additions & 22 deletions docker/cotea_container/src/cotea_run.py

This file was deleted.

38 changes: 0 additions & 38 deletions docker/cotea_container/src/id_rsa

This file was deleted.

1 change: 0 additions & 1 deletion docker/cotea_container/src/id_rsa.pub

This file was deleted.

5 changes: 0 additions & 5 deletions docker/cotea_container/src/inv

This file was deleted.

25 changes: 0 additions & 25 deletions docker/cotea_container/src/main.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions docker/docker-compose.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions docker/docker.md

This file was deleted.

10 changes: 10 additions & 0 deletions src/test/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.10-bookworm

RUN apt update && apt install -y openssh-server sudo && rm -rf /var/lib/apt/lists/*
RUN echo 'root:amella' | chpasswd
RUN mkdir -p /run/sshd

COPY sshd_config /etc/ssh/sshd_config

EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
9 changes: 9 additions & 0 deletions src/test/docker/sshd_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Include /etc/ssh/sshd_config.d/*.conf

PermitRootLogin yes
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server

0 comments on commit e030d3e

Please sign in to comment.