@@ -85,7 +85,7 @@ RUN mkdir -p /opt/oracle && \
85
85
ldconfig
86
86
87
87
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 2 && \
88
- python3 -m pip install -U setuptools pip
88
+ python3 -m pip install -U " pip < 22" setuptools wheel
89
89
90
90
# install NLP packages *mecab-ko & khai*
91
91
WORKDIR /tmp
@@ -165,49 +165,6 @@ COPY ./requirements.22.02.txt /tmp/requirements.txt
165
165
RUN python3 -m pip install --no-cache-dir -r requirements.txt && \
166
166
rm -f /tmp/*.whl /tmp/requirements.txt
167
167
168
- # install bashtop
169
- WORKDIR /tmp
170
- RUN git clone https://github.com/aristocratos/bashtop.git && \
171
- cd bashtop && \
172
- make install
173
-
174
- # install git-lfs
175
- WORKDIR /tmp
176
- RUN curl -sLO https://github.com/git-lfs/git-lfs/releases/download/v3.1.2/git-lfs-linux-amd64-v3.1.2.tar.gz && \
177
- tar -zxf git-lfs-linux-amd64-v3.1.2.tar.gz && \
178
- bash install.sh && \
179
- rm -rf /tmp/*
180
-
181
- RUN curl -fL https://github.com/cdr/code-server/releases/download/v4.2.0/code-server-4.2.0-linux-amd64.tar.gz | tar -C /usr/local/lib -xz && \
182
- mv /usr/local/lib/code-server-4.2.0-linux-amd64 /usr/local/lib/code-server-4.2.0 && \
183
- ln -s /usr/local/lib/code-server-4.2.0/bin/code-server /usr/local/bin/code-server
184
-
185
- # Install Open MPI
186
- RUN mkdir /tmp/openmpi && \
187
- cd /tmp/openmpi && \
188
- wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.2.tar.gz && \
189
- tar zxf openmpi-4.1.2.tar.gz && \
190
- cd openmpi-4.1.2 && \
191
- ./configure --enable-orterun-prefix-by-default && \
192
- make -j $(nproc) all && \
193
- make install && \
194
- ldconfig && \
195
- rm -rf /tmp/openmpi*
196
- # Create a wrapper for OpenMPI to allow running as root by default
197
- RUN mv /usr/local/bin/mpirun /usr/local/bin/mpirun.real && \
198
- echo '#!/bin/bash' > /usr/local/bin/mpirun && \
199
- echo 'mpirun.real --allow-run-as-root "$@"' >> /usr/local/bin/mpirun && \
200
- chmod a+x /usr/local/bin/mpirun
201
-
202
- # Configure OpenMPI to run good defaults:
203
- RUN echo "btl_tcp_if_exclude = lo,docker0" >> /usr/local/etc/openmpi-mca-params.conf
204
-
205
- RUN python3 -m pip install --no-cache-dir \
206
- mpi4py==3.1.3 \
207
- nni==2.6.1 \
208
- mlflow==1.24.0 \
209
- scikit-nni==0.2.1
210
-
211
168
212
169
# Install Jupyterlab extensions
213
170
RUN jupyter nbextensions_configurator enable && \
@@ -220,8 +177,7 @@ RUN jupyter nbextensions_configurator enable && \
220
177
jupyter labextension install --no-build @jupyterlab/toc && \
221
178
jupyter nbextension enable execute_time/ExecuteTime && \
222
179
jupyter nbextension enable toc2/main && \
223
- jupyter labextension install @jupyterlab/toc && \
224
- jupyter lab build
180
+ jupyter lab build
225
181
226
182
RUN apt autoclean && \
227
183
sed -i 's/source \/ usr\/ local\/ nvm\/ nvm.sh//' /etc/bash.bashrc && \
@@ -231,7 +187,7 @@ RUN apt autoclean && \
231
187
rm -rf /tmp/*
232
188
233
189
# Install ipython kernelspec
234
- RUN /usr/bin/python3 -m ipykernel install --display-name "Python 3.8 (NGC 22.02 / TensorFlow 2.6 ) on Backend.AI" && \
190
+ RUN /usr/bin/python3 -m ipykernel install --display-name "Python 3.8 (NGC 22.02 / TensorFlow 2.7 ) on Backend.AI" && \
235
191
cat /usr/local/share/jupyter/kernels/python3/kernel.json
236
192
237
193
# Backend.AI specifics
0 commit comments