Skip to content

Commit aa21460

Browse files
committed
Add ssh Tilt test resource
1 parent 1fccb1c commit aa21460

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Tiltfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ dc_resource('dozzle', labels=['Monitoring'], links=[
152152
# Test services: Services supporting test execution that are not data stores, like proxies, mock servers, etc.
153153

154154
dc_resource('toxiproxy', labels=['TestInfra'], auto_init=False)
155+
dc_resource('openssh', labels=['TestInfra'], auto_init=False)
155156

156157
# Cleanup
157158

ancillary-docker-compose.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,29 @@ services:
156156
# timeout: 10s
157157
# retries: 5
158158

159+
openssh:
160+
container_name: peerdb-test-ssh
161+
# Same image as CI flow
162+
image: linuxserver/openssh-server:latest@sha256:57c13941ef385d735cca18ee969eeba18e42ab95480c97af2182505aacdfe307
163+
restart: unless-stopped
164+
ports:
165+
- "2222:2222"
166+
environment:
167+
- PUID=1000
168+
- PGID=1000
169+
- TZ=Etc/UTC
170+
- USER_NAME=testuser
171+
- USER_PASSWORD=testpass
172+
- PASSWORD_ACCESS=true
173+
- DOCKER_MODS=linuxserver/mods:openssh-server-ssh-tunnel
174+
extra_hosts:
175+
- "host.docker.internal:host-gateway"
176+
healthcheck:
177+
test: ["CMD", "nc", "-z", "localhost", "2222"]
178+
interval: 2s
179+
timeout: 10s
180+
retries: 5
181+
159182
volumes:
160183
postgres_data:
161184
clickhouse_data:

0 commit comments

Comments
 (0)