From a43ce8950dcc36363c406b1cc4043dc7d623c9f4 Mon Sep 17 00:00:00 2001 From: Jozsef Csongvai Date: Tue, 2 Feb 2021 08:29:51 -0500 Subject: Initial commit Issue-ID: TEST-296 Signed-off-by: Jozsef Csongvai Change-Id: I26eae5060212a3ba5af0357e11e1b30c0449ff8a --- docker/Dockerfile | 4 ++ docker/create-user.sh | 17 ++++++ docker/sshd_config | 115 +++++++++++++++++++++++++++++++++++++++++ helm/Chart.yaml | 4 ++ helm/templates/_templates.tpl | 107 ++++++++++++++++++++++++++++++++++++++ helm/templates/deployment.yaml | 43 +++++++++++++++ helm/templates/service.yaml | 39 ++++++++++++++ helm/values.yaml | 29 +++++++++++ 8 files changed, 358 insertions(+) create mode 100644 docker/Dockerfile create mode 100755 docker/create-user.sh create mode 100644 docker/sshd_config create mode 100644 helm/Chart.yaml create mode 100644 helm/templates/_templates.tpl create mode 100644 helm/templates/deployment.yaml create mode 100644 helm/templates/service.yaml create mode 100644 helm/values.yaml diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..af3e88b --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,4 @@ +FROM danielguerra/alpine-sshd:latest +COPY ./create-user.sh /opt/create-user.sh +COPY ./sshd_config /etc/ssh/sshd_config +RUN ["/opt/create-user.sh"] \ No newline at end of file diff --git a/docker/create-user.sh b/docker/create-user.sh new file mode 100755 index 0000000..fc4ca8d --- /dev/null +++ b/docker/create-user.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +mkdir -p /home/cdstest/dev /home/cdstest/bin /home/cdstest/lib /home/cdstest/etc +cd /home/cdstest/dev +mknod -m 666 null c 1 3 +mknod -m 666 tty c 5 0 +mknod -m 666 zero c 1 5 +mknod -m 666 random c 1 8 +cp /bin/ash /bin/ls /bin/date /home/cdstest/bin/. +cp /lib/ld-musl-x86_64.so.1 /home/cdstest/lib/. +adduser cdstest <