We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3028ce0 commit 6e834edCopy full SHA for 6e834ed
Makefile
@@ -0,0 +1,22 @@
1
+all: test
2
+
3
+CONTAINER_NAME=debian-ssh:latest
4
5
+killall: .FORCE
6
+ docker kill $$(docker ps | sed -r -n '/^[^ ]+ +$(CONTAINER_NAME) / {s/ .*$$//;p}')
7
8
+build:
9
+ docker build -t $(CONTAINER_NAME) .
10
11
+test: build .FORCE
12
+ docker run -d -p 2222:22 -e SSH_KEY="$$(cat ~/.ssh/id_rsa.pub)" $(CONTAINER_NAME)
13
+ while ! ssh root@localhost -p 2222 -o "StrictHostKeyChecking=no" env; do sleep 0.1; done
14
+ docker kill $$(docker ps -ql)
15
16
+debug-ssh: build .FORCE
17
+ docker run -p 2222:22 -e SSH_KEY="$$(cat ~/.ssh/id_rsa.pub)" $(CONTAINER_NAME)
18
19
+debug-connect: .FORCE
20
+ ssh root@localhost -p 2222 -o "StrictHostKeyChecking=no" env
21
22
+.FORCE:
0 commit comments