Skip to content

Commit 9896f23

Browse files
committed
update npm
1 parent a46f884 commit 9896f23

File tree

1 file changed

+3
-47
lines changed

1 file changed

+3
-47
lines changed

vendor/ngc-tensorflow/Dockerfile.22.02-tf2-py3

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ RUN mkdir -p /opt/oracle && \
8585
ldconfig
8686

8787
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
8989

9090
# install NLP packages *mecab-ko & khai*
9191
WORKDIR /tmp
@@ -165,49 +165,6 @@ COPY ./requirements.22.02.txt /tmp/requirements.txt
165165
RUN python3 -m pip install --no-cache-dir -r requirements.txt && \
166166
rm -f /tmp/*.whl /tmp/requirements.txt
167167

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-
211168

212169
# Install Jupyterlab extensions
213170
RUN jupyter nbextensions_configurator enable && \
@@ -220,8 +177,7 @@ RUN jupyter nbextensions_configurator enable && \
220177
jupyter labextension install --no-build @jupyterlab/toc && \
221178
jupyter nbextension enable execute_time/ExecuteTime && \
222179
jupyter nbextension enable toc2/main && \
223-
jupyter labextension install @jupyterlab/toc && \
224-
jupyter lab build
180+
jupyter lab build
225181

226182
RUN apt autoclean && \
227183
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
@@ -231,7 +187,7 @@ RUN apt autoclean && \
231187
rm -rf /tmp/*
232188

233189
# 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" && \
235191
cat /usr/local/share/jupyter/kernels/python3/kernel.json
236192

237193
# Backend.AI specifics

0 commit comments

Comments
 (0)