summaryrefslogtreecommitdiffhomepage
path: root/ssh/tailssh/testcontainers
diff options
context:
space:
mode:
Diffstat (limited to 'ssh/tailssh/testcontainers')
-rw-r--r--ssh/tailssh/testcontainers/Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/ssh/tailssh/testcontainers/Dockerfile b/ssh/tailssh/testcontainers/Dockerfile
new file mode 100644
index 000000000..e782af55e
--- /dev/null
+++ b/ssh/tailssh/testcontainers/Dockerfile
@@ -0,0 +1,11 @@
+ARG BASE
+FROM ${BASE}
+
+RUN groupadd -g 10000 groupone
+RUN groupadd -g 10001 grouptwo
+RUN useradd -g 10000 -G 10001 -u 10002 -m testuser
+COPY . .
+RUN ./tailssh.test -test.run TestIntegration
+# Remove the su command and run the test again to make sure it works without su
+RUN rm `which su`
+RUN ./tailssh.test -test.run TestIntegration