generated from ucsd-ets/datahub-example-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
104 lines (79 loc) · 2.58 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
FROM nvcr.io/nvidia/cuda:11.2.2-devel-ubuntu20.04
USER root
RUN apt-get update -y && \
ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime && \
DEBIAN_FRONTEND=noninteractive \
apt-get -qq install -y --no-install-recommends \
git \
curl \
rsync \
unzip \
less \
nano \
vim \
openssh-client \
openssh-server \
netcat \
cmake \
tmux \
screen \
gnupg \
htop \
wget \
p7zip \
pkg-config \
libglvnd0 \
libgl1 \
libglx0 \
libegl1 \
libgles2 \
libglvnd-dev \
libgl1-mesa-dev \
libegl1-mesa-dev \
libgles2-mesa-dev \
cmake \
curl \
libsm6 \
libxext6 \
libxrender-dev\
p7zip-full && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
chmod g-s /usr/bin/screen && \
chmod 1777 /var/run/screen && \
dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get -y install htop
RUN apt-get update && apt-get install -y python3.8 python3.8-dev python3.8-venv curl python3-tk
RUN apt install python3.8
RUN apt install python3.8-distutils
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3.8 get-pip.py
RUN apt-get update
RUN echo y|apt-get install build-essential manpages-dev -
RUN python3.8 -m pip install -U pip setuptools
RUN wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
RUN unzip ninja-linux.zip -d /usr/local/bin/
RUN update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force
USER jovyan
WORKDIR /home/jovyan
# # 1) choose base container
# # generally use the most recent tag
# # base notebook, contains Jupyter and relevant tools
# # See https://github.com/ucsd-ets/datahub-docker-stack/wiki/Stable-Tag
# # for a list of the most current containers we maintain
# ARG BASE_CONTAINER=ucsdets/scipy-ml-notebook:2022.3-stable
# #ucsdets/datahub-base-notebook:2022.3-stable
# FROM $BASE_CONTAINER
# LABEL maintainer="UC San Diego ITS/ETS <[email protected]>"
# # 2) change to root to install packages
# USER root
# RUN apt-get -y install htop
# RUN sudo apt-get update
# RUN sudo echo y|apt-get install build-essential manpages-dev -
# RUN wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
# RUN sudo unzip ninja-linux.zip -d /usr/local/bin/
# RUN sudo update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force
# # 3) install packages using notebook user
# USER jovyan
# RUN pip install --no-cache-dir networkx scipy --user
# # Override command to disable running jupyter notebook at launch
# # CMD ["/bin/bash"]