-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 970 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Docker Test Environment for MCP-SSH-Tool
services:
ssh-server:
image: lscr.io/linuxserver/openssh-server:latest
container_name: mcp-ssh-test
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
- SUDO_ACCESS=true
- PASSWORD_ACCESS=true
- USER_PASSWORD=testpass
- USER_NAME=testuser
ports:
- "2222:2222"
restart: unless-stopped
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "2222"]
interval: 10s
timeout: 5s
retries: 3
# Optional: Run tests against the SSH server
test-runner:
build:
context: .
dockerfile: Dockerfile.test
depends_on:
ssh-server:
condition: service_healthy
environment:
- RUN_SSH_E2E=1
- RUN_SSH_INTEGRATION=1
- TEST_SSH_HOST=ssh-server
- TEST_SSH_PORT=2222
- TEST_SSH_USER=testuser
- TEST_SSH_PASS=testpass
command: sh -lc "npm run test:e2e && npm run test:integration"