Skip to content

Commit

Permalink
Merge pull request #45560 from angerson/r2.3
Browse files Browse the repository at this point in the history
Dockerfiles: Pin pip version and fix apt-get
  • Loading branch information
mihaimaruseac committed Dec 9, 2020
2 parents 5681c17 + a260612 commit f3c5b4e
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 54 deletions.
Expand Up @@ -33,7 +33,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand All @@ -60,9 +60,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/dockerfiles/dockerfiles/cpu.Dockerfile
Expand Up @@ -33,7 +33,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -111,9 +111,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -104,7 +104,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -153,9 +153,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -104,7 +104,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -82,7 +82,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand All @@ -109,9 +109,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/tools/dockerfiles/dockerfiles/gpu.Dockerfile
Expand Up @@ -82,7 +82,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -163,9 +163,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -33,7 +33,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -112,9 +112,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -33,7 +33,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -33,7 +33,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -78,9 +78,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -33,7 +33,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -112,9 +112,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -104,7 +104,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -154,9 +154,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -104,7 +104,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -82,7 +82,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down Expand Up @@ -127,9 +127,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -82,7 +82,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down
Expand Up @@ -5,9 +5,7 @@ RUN jupyter serverextension enable --py jupyter_http_over_ws

RUN mkdir -p /tf/tensorflow-tutorials && chmod -R a+rwx /tf/
RUN mkdir /.local && chmod a+rwx /.local
RUN apt-get install -y --no-install-recommends wget
# some examples require git to fetch dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get update && apt-get install -y --no-install-recommends wget git
WORKDIR /tf/tensorflow-tutorials
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/classification.ipynb
RUN wget https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/keras/overfit_and_underfit.ipynb
Expand Down
Expand Up @@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

RUN python3 -m pip --no-cache-dir install --upgrade \
pip \
"pip<20.3" \
setuptools

# Some TF tools expect a "python" binary
Expand Down

0 comments on commit f3c5b4e

Please sign in to comment.