-
Notifications
You must be signed in to change notification settings - Fork 184
/
Dockerfile
65 lines (59 loc) · 2.65 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ARG CUDA_VER="10.2"
ARG UBUNTU_VERSION="16.04"
FROM nvidia/cuda:${CUDA_VER}-runtime-ubuntu${UBUNTU_VERSION}
LABEL Description="blazingdb/blazingsql is the official BlazingDB environment for BlazingSQL on NIVIDA RAPIDS." Vendor="BlazingSQL" Version="0.4.0"
ARG CUDA_VER=10.2
ARG CONDA_CH="-c blazingsql -c rapidsai -c nvidia"
ARG PYTHON_VERSION="3.7"
ARG RAPIDS_VERSION="0.18"
SHELL ["/bin/bash", "-c"]
ENV PYTHONDONTWRITEBYTECODE=true
RUN apt-get update -qq && \
apt-get install curl git -yqq --no-install-recommends && \
apt-get clean -y && \
curl -s -o /tmp/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash /tmp/miniconda.sh -bfp /usr/local/ && \
rm -rf /tmp/miniconda.sh && \
conda create python=${PYTHON_VERSION} -y -n bsql && \
conda install -y -n bsql \
${CONDA_CH} \
-c conda-forge -c defaults \
cugraph=${RAPIDS_VERSION} cuml=${RAPIDS_VERSION} \
cusignal=${RAPIDS_VERSION} \
cuspatial=${RAPIDS_VERSION} \
cuxfilter clx=${RAPIDS_VERSION} \
python=${PYTHON_VERSION} cudatoolkit=${CUDA_VER} \
blazingsql=${RAPIDS_VERSION} \
jupyterlab \
networkx statsmodels xgboost \
geoviews seaborn matplotlib holoviews colorcet && \
conda clean -afy && \
rm -rf /var/cache/apt /var/lib/apt/lists/* /tmp/miniconda.sh /usr/local/pkgs/* && \
rm -rf /usr/local/envs/bsql/include && \
rm -f /usr/local/envs/bsql/lib/libpython3.*m.so.1.0 && \
find /usr/local/envs/bsql -name '__pycache__' -type d -exec rm -rf '{}' '+' && \
find /usr/local/envs/bsql -follow -type f -name '*.pyc' -delete && \
rm -rf /usr/local/envs/bsql/lib/libasan.so.5.0.0 \
/usr/local/envs/bsql/lib/libtsan.so.0.0.0 \
/usr/local/envs/bsql/lib/liblsan.so.0.0.0 \
/usr/local/envs/bsql/lib/libubsan.so.1.0.0 \
/usr/local/envs/bsql/bin/sqlite3 \
/usr/local/envs/bsql/bin/openssl \
/usr/local/envs/bsql/share/terminfo \
/usr/local/envs/bsql/bin/postgres \
/usr/local/envs/bsql/bin/pg_* \
/usr/local/envs/bsql/man \
/usr/local/envs/bsql/qml \
/usr/local/envs/bsql/qsci \
/usr/local/envs/bsql/mkspecs && \
find /usr/local/envs/bsql/lib/python3.*/site-packages -name 'tests' -type d -exec rm -rf '{}' '+' && \
find /usr/local/envs/bsql/lib/python3.*/site-packages -name '*.pyx' -delete && \
find /usr/local/envs/bsql -name '*.c' -delete && \
git clone --branch=master https://github.com/BlazingDB/Welcome_to_BlazingSQL_Notebooks /blazingsql && \
rm -rf /blazingsql/.git && \
mkdir /.local /.jupyter /.cupy && chmod 777 /.local /.jupyter /.cupy
WORKDIR /blazingsql
COPY run_jupyter.sh /blazingsql
# Jupyter
EXPOSE 8888
CMD ["/blazingsql/run_jupyter.sh"]