forked from rapidsai/clx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (40 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# An integration test & dev container which builds and installs CLX from default branch
ARG CUDA_VERSION=10.2
ARG CUDA_SHORT_VERSION=${CUDA_VERSION}
ARG LINUX_VERSION=ubuntu18.04
FROM gpuci/miniconda-cuda:${CUDA_VERSION}-devel-${LINUX_VERSION}
ENV DEBIAN_FRONTEND=noninteractive
ARG CC=5
ARG CXX=5
RUN apt update -y --fix-missing && \
apt upgrade -y && \
apt install -y \
git \
gcc-${CC} \
g++-${CXX} \
libboost-all-dev \
tzdata
# Add everything from the local build context
ADD . /clx/
ARG CUDA_SHORT_VERSION
RUN conda env create --name clx --file /clx/conda/environments/clx_dev_cuda${CUDA_SHORT_VERSION}.yml
# libclx build/install
ENV CC=/usr/bin/gcc-${CC}
ENV CXX=/usr/bin/g++-${CXX}
RUN source activate clx && \
mkdir -p /clx/cpp/build && \
cd /clx/cpp/build && \
cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} && \
make -j install
# clx build/install
RUN source activate clx && \
cd /clx/python && \
python setup.py build_ext --inplace && \
python setup.py install
WORKDIR /clx
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini && \
echo "source activate clx" >> ~/.bashrc
ENTRYPOINT [ "/usr/bin/tini", "--", "/clx/docker/.start_jupyter_run_in_rapids.sh" ]
CMD [ "/bin/bash" ]