Paremeterize Python for easy version management
This commit is contained in:
parent
5381666f28
commit
d8a20834e3
@ -93,9 +93,9 @@ RUN mkdir /bazel && \
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -103,6 +103,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -125,9 +125,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -135,6 +135,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -124,9 +124,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -134,6 +134,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -60,9 +60,9 @@ RUN python3 -m pip install --no-cache-dir ${TF_PACKAGE}${TF_PACKAGE_VERSION:+==$
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -70,6 +70,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -88,7 +88,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LC_CTYPE=en_US.UTF-8
|
||||
@ -99,7 +99,7 @@ RUN yum update -y && \
|
||||
devtoolset-8 \
|
||||
devtoolset-8-make \
|
||||
llvm-toolset-7-cmake \
|
||||
python3-devel \
|
||||
${PYTHON}-devel \
|
||||
sclo-git25 && \
|
||||
yum clean all
|
||||
|
||||
@ -110,9 +110,9 @@ RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVO
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -120,6 +120,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -88,7 +88,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LC_CTYPE=en_US.UTF-8
|
||||
@ -99,7 +99,7 @@ RUN yum update -y && \
|
||||
devtoolset-8 \
|
||||
devtoolset-8-make \
|
||||
llvm-toolset-7-cmake \
|
||||
python3-devel \
|
||||
${PYTHON}-devel \
|
||||
sclo-git25 && \
|
||||
yum clean all
|
||||
|
||||
|
@ -87,7 +87,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LC_CTYPE=en_US.UTF-8
|
||||
@ -98,7 +98,7 @@ RUN yum update -y && \
|
||||
devtoolset-8 \
|
||||
devtoolset-8-make \
|
||||
llvm-toolset-7-cmake \
|
||||
python3-devel \
|
||||
${PYTHON}-devel \
|
||||
sclo-git25 && \
|
||||
yum clean all
|
||||
|
||||
@ -109,9 +109,9 @@ RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVO
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -119,6 +119,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -87,7 +87,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LC_CTYPE=en_US.UTF-8
|
||||
@ -98,7 +98,7 @@ RUN yum update -y && \
|
||||
devtoolset-8 \
|
||||
devtoolset-8-make \
|
||||
llvm-toolset-7-cmake \
|
||||
python3-devel \
|
||||
${PYTHON}-devel \
|
||||
sclo-git25 && \
|
||||
yum clean all
|
||||
|
||||
|
@ -93,9 +93,9 @@ RUN mkdir /bazel && \
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -103,6 +103,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -125,9 +125,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -135,6 +135,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -124,9 +124,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -134,6 +134,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -57,9 +57,9 @@ RUN python3 -m pip install --no-cache-dir ${TF_PACKAGE}${TF_PACKAGE_VERSION:+==$
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -67,6 +67,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -85,7 +85,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=0.21.0
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN yum update -y && yum install -y \
|
||||
cmake \
|
||||
@ -93,7 +93,7 @@ RUN yum update -y && yum install -y \
|
||||
gcc-c++ \
|
||||
git \
|
||||
make \
|
||||
python36-devel && \
|
||||
${PYTHON}-devel && \
|
||||
yum clean all
|
||||
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
@ -101,9 +101,9 @@ RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVO
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -111,6 +111,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -85,7 +85,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=0.21.0
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN yum update -y && yum install -y \
|
||||
cmake \
|
||||
@ -93,7 +93,7 @@ RUN yum update -y && yum install -y \
|
||||
gcc-c++ \
|
||||
git \
|
||||
make \
|
||||
python36-devel && \
|
||||
${PYTHON}-devel && \
|
||||
yum clean all
|
||||
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
@ -84,7 +84,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=0.21.0
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN yum update -y && yum install -y \
|
||||
cmake \
|
||||
@ -92,7 +92,7 @@ RUN yum update -y && yum install -y \
|
||||
gcc-c++ \
|
||||
git \
|
||||
make \
|
||||
python36-devel && \
|
||||
${PYTHON}-devel && \
|
||||
yum clean all
|
||||
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
@ -100,9 +100,9 @@ RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVO
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -110,6 +110,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -84,7 +84,7 @@ RUN cat /etc/ssh/sshd_config | grep -v StrictHostKeyChecking > /etc/ssh/sshd_con
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=0.21.0
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN yum update -y && yum install -y \
|
||||
cmake \
|
||||
@ -92,7 +92,7 @@ RUN yum update -y && yum install -y \
|
||||
gcc-c++ \
|
||||
git \
|
||||
make \
|
||||
python36-devel && \
|
||||
${PYTHON}-devel && \
|
||||
yum clean all
|
||||
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
@ -65,11 +65,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -94,9 +94,9 @@ RUN mkdir /bazel && \
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -104,6 +104,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -65,11 +65,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -128,9 +128,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -138,6 +138,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -65,11 +65,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
@ -65,11 +65,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -128,9 +128,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -138,6 +138,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -65,11 +65,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
@ -65,11 +65,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
@ -33,11 +33,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -62,9 +62,9 @@ RUN python3 -m pip install --no-cache-dir ${TF_PACKAGE}${TF_PACKAGE_VERSION:+==$
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -72,6 +72,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -33,11 +33,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -92,7 +92,7 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
software-properties-common
|
||||
@ -107,19 +107,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 500 --slave /usr/bin/g++ g++ /usr/bin/g++-5 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -127,6 +128,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -33,11 +33,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -92,7 +92,7 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
software-properties-common
|
||||
@ -107,12 +107,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 500 --slave /usr/bin/g++ g++ /usr/bin/g++-5 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
@ -33,11 +33,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -92,7 +92,7 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
software-properties-common
|
||||
@ -107,19 +107,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 500 --slave /usr/bin/g++ g++ /usr/bin/g++-5 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -127,6 +128,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -33,11 +33,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
@ -92,7 +92,7 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
software-properties-common
|
||||
@ -107,12 +107,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 500 --slave /usr/bin/g++ g++ /usr/bin/g++-5 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
@ -33,11 +33,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
@ -83,9 +83,9 @@ RUN mkdir /bazel && \
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -93,6 +93,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
@ -117,9 +117,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -127,6 +127,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
@ -113,9 +113,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -123,6 +123,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -51,9 +51,9 @@ RUN python3 -m pip install --no-cache-dir ${TF_PACKAGE}${TF_PACKAGE_VERSION:+==$
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -61,6 +61,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -81,26 +81,27 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -108,6 +109,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -81,19 +81,20 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -77,26 +77,27 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -104,6 +105,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -77,19 +77,20 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
@ -83,9 +83,9 @@ RUN mkdir /bazel && \
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -93,6 +93,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
@ -117,9 +117,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -127,6 +127,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
@ -113,9 +113,9 @@ RUN test "${CHECKOUT_HOROVOD_SRC}" -eq 1 && git clone --branch "${HOROVOD_BRANCH
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -123,6 +123,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
|
@ -57,17 +57,17 @@ RUN test "${CHECKOUT_TF_SRC}" -eq 1 && git clone https://github.com/tensorflow/t
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
curl
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -51,9 +51,9 @@ RUN python3 -m pip install --no-cache-dir ${TF_PACKAGE}${TF_PACKAGE_VERSION:+==$
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -61,6 +61,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -81,27 +81,27 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG PYTHON=python3
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -109,6 +109,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -81,20 +81,20 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG PYTHON=python3
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -77,27 +77,27 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG PYTHON=python3
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -105,6 +105,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
@ -77,20 +77,20 @@ RUN cat /etc/ssh/ssh_config | grep -v StrictHostKeyChecking > /etc/ssh/ssh_confi
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG PYTHON=python3
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
||||
COPY bashrc /etc/bash.bashrc
|
||||
RUN chmod a+rwx /etc/bash.bashrc
|
||||
|
@ -25,17 +25,17 @@ FROM ubuntu:${UBUNTU_VERSION} as base
|
||||
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
||||
# Options:
|
||||
# tensorflow
|
||||
|
@ -2,7 +2,7 @@
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LC_CTYPE=en_US.UTF-8
|
||||
@ -13,7 +13,7 @@ RUN yum update -y && \
|
||||
devtoolset-8 \
|
||||
devtoolset-8-make \
|
||||
llvm-toolset-7-cmake \
|
||||
python3-devel \
|
||||
${PYTHON}-devel \
|
||||
sclo-git25 && \
|
||||
yum clean all
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=0.21.0
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN yum update -y && yum install -y \
|
||||
cmake \
|
||||
@ -10,7 +10,7 @@ RUN yum update -y && yum install -y \
|
||||
gcc-c++ \
|
||||
git \
|
||||
make \
|
||||
python36-devel && \
|
||||
${PYTHON}-devel && \
|
||||
yum clean all
|
||||
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
@ -1,6 +1,6 @@
|
||||
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter matplotlib
|
||||
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
||||
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN ${PYTHON} -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
||||
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
||||
|
||||
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
||||
@ -8,6 +8,6 @@ RUN mkdir /.local && chmod a+rwx /.local
|
||||
WORKDIR /tf
|
||||
EXPOSE 8888
|
||||
|
||||
RUN python3 -m ipykernel.kernelspec
|
||||
RUN ${PYTHON} -m ipykernel.kernelspec
|
||||
|
||||
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|
||||
|
@ -2,7 +2,7 @@
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
software-properties-common
|
||||
@ -17,9 +17,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 500 --slave /usr/bin/g++ g++ /usr/bin/g++-5 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
@ -2,17 +2,17 @@
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG PYTHON=python3
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
@ -2,16 +2,17 @@
|
||||
ARG HOROVOD_WITHOUT_PYTORCH=1
|
||||
ARG HOROVOD_WITHOUT_MXNET=1
|
||||
ARG HOROVOD_WITH_TENSORFLOW=1
|
||||
ARG HOROVOD_VERSION=
|
||||
ARG HOROVOD_VERSION=v0.21.1
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
build-essential \
|
||||
cmake \
|
||||
g++-8 \
|
||||
gcc-8 \
|
||||
python3-dev
|
||||
git \
|
||||
${PYTHON}-dev
|
||||
|
||||
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir horovod${HOROVOD_VERSION:+==${HOROVOD_VERSION}}
|
||||
RUN ${PYTHON} -m pip install git+https://github.com/horovod/horovod.git@${HOROVOD_VERSION}
|
||||
|
@ -1,13 +1,13 @@
|
||||
# See http://bugs.python.org/issue19846
|
||||
ENV LANG C.UTF-8
|
||||
ARG PYTHON=python3
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN python3 -m pip --no-cache-dir install --upgrade \
|
||||
${PYTHON} \
|
||||
${PYTHON}-pip
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
||||
# Some TF tools expect a "python" binary
|
||||
RUN ln -s $(which python3) /usr/local/bin/python
|
||||
RUN ln -s $(which ${PYTHON}) /usr/local/bin/python
|
||||
|
@ -8,11 +8,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends --fix-missing \
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
|
||||
${PYTHON}
|
||||
|
||||
RUN curl -fSsL https://bootstrap.pypa.io/get-pip.py | ${PYTHON}
|
||||
|
||||
RUN ${PYTHON} -m pip --no-cache-dir install --upgrade \
|
||||
pip \
|
||||
setuptools
|
||||
|
Loading…
x
Reference in New Issue
Block a user