-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
78 lines (70 loc) · 1.38 KB
/
docker-compose.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
version: '2.1'
networks:
testnet:
driver: bridge
enable_ipv6: false
ipam:
driver: default
config:
- subnet: 192.168.254.0/24
gateway: 192.168.254.1
services:
base_image:
image: base_image
build:
context: src/alpine/base/
# Data container in which to download test files.
downloads:
image: base_image
volumes:
- /home/user/
command: chown -R 1000:1000 /home/user
# Data container for fixtures.
fixtures:
image: hooktftp_fixtures
build:
context: fixtures/
tftpd:
image: hooktftp-runtime
build:
context: src/alpine/builder/
args:
- BUILD_DATE
- CIRCLE_BUILD_URL
- HOOKTFTP_VERSION
- TAG
- VCS_REF
networks:
testnet:
ipv4_address: 192.168.254.254
ports:
- "69:69/tcp"
volumes_from:
- fixtures
pids_limit: 10
cpu_shares: 1023
mem_limit: 100m
shm_size: 32m
stdin_open: true
tty: true
tftp:
image: tftp
build:
context: src/alpine/client/
volumes_from:
- downloads
networks:
testnet:
extra_hosts:
- internal.example.com:192.168.254.254
test:
image: base_image
volumes_from:
- downloads
entrypoint: test
list_files_in_tftpboot:
image: base_image
volumes_from:
- tftpd
command: ls -1 -R /tftpboot/