Files
ROCm-docker/roct/roct-thunk-src-dockerfile.template
Kent Knox 50f2ad2687 Refactor setup file to support debian and source builds
Introduced concept of docker-compose .env file
Both debian and cmake template files are expanded

setup now generates both deb and src dockerfiles at the same time.
docker-compose.yml is changed to not a template file, and can build
both src and debian images

Removed the per-component parameters from setup.sh
renamed template files to change 'cmake' to 'src'

Modifications to src builds of roct & rocr

Neither of these components build into debians yet

Also, it looks like each component is not creating the
softlinks they should.
2017-01-20 16:00:34 -06:00

47 lines
1.6 KiB
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 \
build-essential \
fakeroot \
git \
ca-certificates \
libpci-dev \
cmake-curses-gui && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# App specific environment variables
ENV HSATHK_BUILD_PATH=/usr/local/src/ROCT-Thunk-Interface
# Uncomment the following code when ROCT-Thunk-Interface cmake code can make debian packages
#RUN mkdir -p ${HSATHK_BUILD_PATH} && \
# cd ${HSATHK_BUILD_PATH} && \
# git clone --depth=1 --branch=${tag} https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git ./ && \
# mkdir -p build && \
# cd build && \
# cmake \
# -DCMAKE_INSTALL_PREFIX=${roct_volume} \
# -DCMAKE_BUILD_TYPE=${build_config} \
# .. && \
# make -j $(nproc) package && \
# ${roct_cleanup} \
# dpkg -i hsakmt-roct-dev-\*.deb && \
# git log -n 3 > ${roct_volume}/git-stamp.log
RUN mkdir -p ${HSATHK_BUILD_PATH} && \
cd ${HSATHK_BUILD_PATH} && \
git clone --depth=1 --branch=${tag} https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git ./ && \
make -j $(nproc) deb && \
dpkg -i build/deb/hsakmt-dev-*.deb && \
ln -sr ${roct_volume}lib/libhsakmt.so.1 ${roct_volume}lib/libhsakmt.so && \
${roct_cleanup}