Adding dev/* dockerfiles meant to serve as base images

New dockerfiles exist in a subdirectory called /dev.  These are
meant to serve as base docker images downstream dockerfiles
use in FROM statements

Fixed stale URL's and fixed up the name of the rocm kernel packages.
This commit is contained in:
Kent Knox
2017-11-07 17:23:59 -06:00
parent a14fa609b0
commit 078b40bad5
10 changed files with 60 additions and 51 deletions

View File

@@ -1,22 +1,5 @@
version: '2.1'
# Manually create these data volumes on the command line like so:
# docker volume create --name cmake-x.x.x
#
# In order to use the home volume, there appears to be an initialization bug
# with named volumes. I was able to get around it by explicitely initializing
# docker run -it --rm -v client-home:/home rocm/jenkins-client bash -l
#
# The etc shared volume is necessary to preserve passwd and supporting files
# when rebuilding the image. I hope in the future a better way can be found to
# preserve user and password information than saving the entire /etc
volumes:
hcc-lc:
external:
name: hcc-lc-${HCC_VERSION}
hip:
external:
name: hip-${HCC_VERSION}
services:
# The following are images built from debians downloaded from a package repository
@@ -74,21 +57,6 @@ services:
dockerfile: ${hcc_lc_src_dockerfile}
image: ${hcc_lc_image_name_src}
container_name: hcc-lc-src
volumes:
- hcc-lc:${hcc_lc_volume}
- hip:/opt/rocm/hip
# 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 defined above to provide their software layers
@@ -117,3 +85,19 @@ services:
- 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