Skip to content

Commit

Permalink
chore: fix commands for docker (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab authored Oct 22, 2024
1 parent d92a9c6 commit 4363190
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .makim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -431,19 +431,31 @@ groups:
build:
help: Build the dockerfile for ssh tests
dir: containers
env:
DOCKER_BUILDKIT: "0"
run: docker build -t ssh-test .

start:
help: Start a service from the dockerfile for ssh tests
dir: containers
env:
DOCKER_BUILDKIT: "0"
hooks:
pre-run:
- task: docker.build
run: docker run -d -p 2222:22 --rm ssh-test
run: docker run -d -p 2222:22 --rm --name ssh-test ssh-test

stop:
help: Start a service from the dockerfile for ssh tests
dir: containers
env:
DOCKER_BUILDKIT: "0"
run: docker stop ssh-test

test:
help: Test ssh connection with the docker service
dir: containers
run: |
# it requires the password manually
ssh-keygen -R "[localhost]:2222" || true
ssh -o StrictHostKeyChecking=no testuser@localhost -p 2222

0 comments on commit 4363190

Please sign in to comment.