summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2023-03-08 16:28:32 +0200
committerJustin Wernick <justin@worthe-it.co.za>2023-03-08 16:28:32 +0200
commitfd7f699029899cdcedc4f801d76a9c3268ecb532 (patch)
tree5e76fbdb71bcebbbbc2d138f146ec523f6a7f957 /Dockerfile
parent0687dc7255530596f77b7c834aefadab2b76f58b (diff)
Created an dockerfile for testing shackle on a server
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..96e8186
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+FROM debian:bookworm
+
+RUN apt-get update \
+ && apt-get install --no-install-recommends -y \
+ git openssh-server \
+ && rm -rf /var/lib/apt/lists/*
+
+EXPOSE 22
+
+RUN sed -i /etc/ssh/sshd_config \
+ -e 's/#PasswordAuthentication.*/PasswordAuthentication yes/' \
+ -e 's/#PermitEmptyPasswords.*/PermitEmptyPasswords yes/'
+
+RUN adduser --shell /usr/bin/shackle shukkie && passwd -d shukkie
+
+ARG CHANNEL=debug
+COPY target/${CHANNEL}/shackle /usr/bin/shackle
+
+ENTRYPOINT service ssh start && bash
+
+# docker build -t shackle-server --build-arg CHANNEL=release ./
+# docker run -it -p 2022:22 shackle-server
+# ssh -p 2022 shukkie@localhost \ No newline at end of file