From 6928c10d5ff085982a3db32172646a988e97a084 Mon Sep 17 00:00:00 2001 From: johan beisser Date: Mon, 4 Dec 2023 10:19:46 +0100 Subject: [PATCH 1/2] Add in a general SSH client package. --- ssh/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ssh/Dockerfile diff --git a/ssh/Dockerfile b/ssh/Dockerfile new file mode 100644 index 0000000..7e3fa42 --- /dev/null +++ b/ssh/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine:latest + +RUN apk update &&\ + apk add openssh-client bash + +ENTRYPOINT ["ssh"] From 29c02967d78612912c013cb24c4c19dc712cb617 Mon Sep 17 00:00:00 2001 From: johan beisser Date: Mon, 4 Dec 2023 10:49:31 +0100 Subject: [PATCH 2/2] Create a proper whalebrew package for SSH. --- ssh/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ssh/Dockerfile b/ssh/Dockerfile index 7e3fa42..c69780c 100644 --- a/ssh/Dockerfile +++ b/ssh/Dockerfile @@ -2,5 +2,12 @@ FROM alpine:latest RUN apk update &&\ apk add openssh-client bash +RUN adduser -D -s /bin/bash -h /home/ssh ssh + +USER ssh +WORKDIR /home/ssh + +LABEL io.whalebrew.name ssh +LABEL io.whalebrew.config.volumes '["~/.ssh:/home/ssh/.ssh:ro"]' ENTRYPOINT ["ssh"]