infra-ansible

ansible script to ship alpine/ssh/wireguard

git clone https://9o.is/git/infra-ansible.git

commit c04aad42930d02e5dd31b83883645cf5aa40af3a
parent 83c8e99de7ff9314fdbfe6dfd07a13a4fe6757ea
Author: Jul <jul@9o.is>
Date:   Mon, 13 May 2024 13:22:38 +0800

add docker compose for local testing

Diffstat:
Ahost/test/Dockerfile | 9+++++++++
Ahost/test/authorized_keys | 1+
Ahost/test/compose.yml | 8++++++++
3 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/host/test/Dockerfile b/host/test/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:bookworm-20240130-slim + +RUN mkdir /var/run/sshd; \ + apt update && apt install -y openssh-server + +COPY authorized_keys /root/.ssh/authorized_keys + +CMD /usr/sbin/sshd -D + diff --git a/host/test/authorized_keys b/host/test/authorized_keys @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4zNrHVit/S7gU3qW2IbSP8jtUpGSP3tb+z/PBSXD66 jul@9o.is diff --git a/host/test/compose.yml b/host/test/compose.yml @@ -0,0 +1,8 @@ +version: '3' +services: + server: + build: . + container_name: server + ports: + - "2222:22" +