mirror of
https://github.com/RadeonOpenCompute/ROCm-docker.git
synced 2023-04-23 17:53:00 +03:00
In the docker-compose yaml file, a new target to launch rocm-project without mapping any volumes is available. This target only uses the binary bits availalbe from the amd apt-get repo. The old targets were merged into a new one, and now map the built from source bits on top of the amd apt repo data, hiding it. License changed to MIT
84 lines
1.9 KiB
Plaintext
84 lines
1.9 KiB
Plaintext
# #################################################
|
|
# Copyright (c) 2016 Advanced Micro Devices, Inc.
|
|
# #################################################
|
|
|
|
version: '2'
|
|
services:
|
|
# The following defines data-only containers
|
|
# They are not meant to be used as interactive containers
|
|
roct:
|
|
build:
|
|
context: ./roct
|
|
dockerfile: Dockerfile
|
|
image: ${roct_name}
|
|
container_name: roct
|
|
entrypoint: /bin/true
|
|
volumes:
|
|
- ${roct_volume}
|
|
|
|
rocr:
|
|
depends_on:
|
|
- roct
|
|
build:
|
|
context: ./rocr
|
|
dockerfile: Dockerfile
|
|
image: ${rocr_name}
|
|
container_name: rocr
|
|
entrypoint: /bin/true
|
|
volumes:
|
|
- ${rocr_volume}
|
|
|
|
hcc-lc:
|
|
depends_on:
|
|
- rocr
|
|
build:
|
|
context: ./hcc-lc
|
|
dockerfile: Dockerfile
|
|
image: ${hcc_lc_name}
|
|
container_name: hcc-lc
|
|
entrypoint: /bin/true
|
|
volumes:
|
|
- ${hcc_lc_volume}
|
|
|
|
hcc-hsail:
|
|
depends_on:
|
|
- rocr
|
|
build:
|
|
context: ./hcc-hsail
|
|
dockerfile: Dockerfile
|
|
image: ${hcc_hsail_name}
|
|
container_name: hcc-hsail
|
|
entrypoint: /bin/true
|
|
volumes:
|
|
- ${hcc_hsail_volume}
|
|
|
|
# The following defines application containers, which depend on the data-only
|
|
# containers defiend above to provide their software layers
|
|
# These should be run with `docker-compose run --rm <application-service>`
|
|
rocm:
|
|
build:
|
|
context: ./rocm-project
|
|
dockerfile: Dockerfile
|
|
devices:
|
|
- "/dev/kfd"
|
|
image: rocm/rocm
|
|
# volumes is used to map host directories into the container
|
|
volumes:
|
|
- ~:/usr/local/src/host-home
|
|
|
|
rocm-source:
|
|
build:
|
|
context: ./rocm-project
|
|
dockerfile: Dockerfile
|
|
devices:
|
|
- "/dev/kfd"
|
|
image: rocm/rocm-source
|
|
# volumes is used to map host directories into the container
|
|
volumes:
|
|
- ~:/usr/local/src/host-home
|
|
volumes_from:
|
|
- roct:ro
|
|
- rocr:ro
|
|
- hcc-lc:ro
|
|
- hcc-hsail:ro
|