-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (39 loc) · 1.43 KB
/
docker-compose.yaml
File metadata and controls
39 lines (39 loc) · 1.43 KB
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
---
version: '3.9'
services:
containerssh:
image: ${REGISTRY:-}containerssh/containerssh:${CONTAINERSSH_TAG:?CONTAINERSSH_TAG variable must be set}
build:
context: containerssh
args:
CONTAINERSSH_VERSION: ${CONTAINERSSH_VERSION:?CONTAINERSSH_VERSION variable must be set.}
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
SOURCE_REPO: ${SOURCE_REPO:-https://github.com/ContainerSSH/ContainerSSH}
volumes:
- type: bind
source: ./testdata/${CONTAINERSSH_VERSION:?CONTAINERSSH_VERSION variable must be set.}/config.yaml
target: /etc/containerssh/config.yaml
- type: bind
source: ./testdata/ssh_host_rsa_key
target: /var/secrets/ssh_host_rsa_key
- type: bind
source: ./testdata/ssh_host_ed25519_key
target: /var/secrets/ssh_host_ed25519_key
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
user: "root"
depends_on:
- authconfig
authconfig:
image: ${REGISTRY:-}containerssh/containerssh-test-authconfig:${CONTAINERSSH_TAG:?CONTAINERSSH_TAG variable must be set}
build:
context: containerssh-test-authconfig
args:
CONTAINERSSH_VERSION: ${CONTAINERSSH_VERSION:?CONTAINERSSH_VERSION variable must be set.}
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
SOURCE_REPO: ${SOURCE_REPO:-https://github.com/ContainerSSH/ContainerSSH}
sut:
build: sut
depends_on:
- containerssh