-
Notifications
You must be signed in to change notification settings - Fork 66
/
docker-compose.yml
103 lines (92 loc) · 2.25 KB
/
docker-compose.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '2.1'
services:
# The following are images built from debians downloaded from a package repository
roct-deb:
build:
context: ./roct
dockerfile: ${roct_deb_dockerfile}
image: ${roct_image_name_deb}
container_name: roct-deb
rocr-deb:
depends_on:
- roct-deb
build:
context: ./rocr
dockerfile: ${rocr_deb_dockerfile}
image: ${rocr_image_name_deb}
container_name: rocr-deb
hcc-lc-deb:
depends_on:
- rocr-deb
build:
context: ./hcc-lc
dockerfile: ${hcc_lc_deb_dockerfile}
image: ${hcc_lc_image_name_deb}
container_name: hcc-lc-deb
# The following are images built from rocm source
roct-src:
build:
context: ./roct
dockerfile: ${roct_src_dockerfile}
image: ${roct_image_name_src}
container_name: roct-src
volumes:
- ${roct_volume}
rocr-src:
depends_on:
- roct-src
build:
context: ./rocr
dockerfile: ${rocr_src_dockerfile}
image: ${rocr_image_name_src}
container_name: rocr-src
volumes:
- ${rocr_volume}
hcc-lc-src:
depends_on:
- rocr-src
build:
context: ./hcc-lc
dockerfile: ${hcc_lc_src_dockerfile}
image: ${hcc_lc_image_name_src}
container_name: hcc-lc-src
# The following defines application containers, which depend on the data-only
# containers defined above to provide their software layers
# These should be run with `docker-compose run --rm <application-service>`
rocm:
build:
context: ./rocm-terminal
dockerfile: Dockerfile
devices:
- "/dev/kfd"
image: rocm/rocm-terminal
volumes:
- ~:/usr/local/src/host-home
rocm-from-src:
build:
context: ./rocm-terminal
dockerfile: Dockerfile
devices:
- "/dev/kfd"
image: rocm/rocm-terminal
volumes:
- ~:/usr/local/src/host-home
volumes_from:
- roct-src:ro
- rocr-src:ro
- hcc-lc-src:ro
# - hcc-hsail-src:ro
dev-ubuntu:
build:
context: ./dev
dockerfile: Dockerfile-ubuntu-16.04
devices:
- "/dev/kfd"
image: rocm/dev-ubuntu-16.04
dev-fedora:
build:
context: ./dev
dockerfile: Dockerfile-fedora-24
devices:
- "/dev/kfd"
image: rocm/dev-fedora-24