-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
64 lines (53 loc) · 2.15 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
FROM nvcr.io/nvidia/rapidsai/rapidsai:cuda10.0-devel-ubuntu18.04
MAINTAINER "Wamsi Viswanath [https://www.linkedin.com/in/wamsiv]"
USER root
# Common DLI installs/config
# Install nginx version with extras
RUN apt-get update && apt-get install -y wget && \
wget -qO - https://openresty.org/package/pubkey.gpg | apt-key add - && \
apt-get -y install software-properties-common && \
add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" && \
apt-get update && apt-get install -y --no-install-recommends openresty supervisor curl wget git && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /dli
WORKDIR /dli
# DIGITS env vars, not used everywhere, but keep them here as common globals anyways
ENV DIGITS_URL_PREFIX=/digits
ENV DIGITS_JOBS_DIR=/dli/data/digits
ENV DIGITS_LOGFILE_FILENAME=$DIGITS_JOBS_DIR/digits.log
# Set startup
ENTRYPOINT utils/start_workshop_examples.sh
# Install assessment harness services & Jupyter
RUN apt-get update && apt-get install --upgrade -y --no-install-recommends \
python3-venv \
redis-server && \
python3 -m venv /usr/local/assessment && \
/usr/local/assessment/bin/pip install --upgrade pip && \
/usr/local/assessment/bin/pip install celery flask redis jupyter
# Install Jupyter, etc.
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3 get-pip.py
RUN python3 -m pip install -U pip
RUN pip install --ignore-installed ipython jupyter
# Copy examples and task specific installations
RUN mkdir -p /dli/data/workshop-genelab
COPY . /dli/data/workshop-genelab
WORKDIR /dli/data/workshop-genelab
# Install specific dependencies for workshop-genelab
RUN /bin/bash -c "source activate rapids && \
conda install -c conda-forge jupyterlab altair nodejs=10.13.0 && \
git clone https://github.com/omnisci/pymapd.git && \
cd pymapd && \
pip install -e . && \
pip install -U graphistry \
xgboost \
sklearn \
s3fs \
https://github.com/ibis-project/ibis/archive/master.zip && \
git clone https://github.com/Quansight/jupyterlab-omnisci && \
cd jupyterlab-omnisci && \
jlpm install && \
jlpm run build && \
jupyter labextension install . && \
pip install -e ."
EXPOSE 8888