ROCm-docker/roct/roct-thunk-deb-dockerfile.template
Kent Knox 078b40bad5 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.
2017-11-08 10:26:27 -06:00

19 lines
871 B
Plaintext

# Build this dockerfile with `docker build -f roct-thunk-release-dockerfile -t roc/roct .`
# To reduce container rebuild time, place commands least likely to change at top to
# most changing at bottom
# This builds the radeon open compute kernel thunk
FROM ubuntu:${ubuntu_version}
MAINTAINER Kent Knox <kent.knox@amd>
# Initialize the image we are working with
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y curl && \
curl -sL http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | apt-key add - && \
sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ ${target_distrib_codename} main > /etc/apt/sources.list.d/rocm.list' && \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
hsakmt-roct-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*