Files
rocm-systems/projects/hip/docker/dockerfile-hip-ubuntu-16.04
T
Kent Knox 756ffa5620 Adding initial set Jenkinsfile and dockerfiles
For continuous integration enablement


[ROCm/hip commit: f5b335b147]
2017-06-26 13:18:15 -05:00

21 lines
830 B
Plaintext

# Parameters related to building hip
ARG base_image
FROM ${base_image}
MAINTAINER Kent Knox <kent.knox@amd>
# Copy the debian package of hip into the container from host
COPY *.deb /tmp/
# Install the debian package
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y curl \
&& curl -sL http://packages.amd.com/rocm/apt/debian/rocm.gpg.key | apt-key add - \
&& echo deb [arch=amd64] http://packages.amd.com/rocm/apt/debian/ xenial main | tee /etc/apt/sources.list.d/rocm.list \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --allow-unauthenticated -y \
/tmp/hip_base-*.deb \
/tmp/hip_hcc-*.deb \
/tmp/hip_doc-*.deb \
/tmp/hip_samples-* \
&& rm -f /tmp/*.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*