Skip to content

Commit

Permalink
Merge branch 'osl-incubator:main' into ssh-remote-execution
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetSaroha authored Oct 26, 2024
2 parents 6b24dbf + 4363190 commit 642827e
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 642827e

Please sign in to comment.