Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Update TFX Docker to uninstall the version of TensorFlow installed by…
Browse files Browse the repository at this point in the history
… the TFX components, and install the version requested. (#464)

* Update TFX Docker to uninstall the version of TensorFlow installed by
the TFX components, and install the version requested.

* Also update the GitHub tag - the tags are now prefixed with a 'r', so
e.g. version 0.21.2 has tag 'r0.21.2'.

Co-authored-by: Chuan Yu Foo <[email protected]>
  • Loading branch information
chuanyu and chuanyu authored Apr 1, 2020
1 parent d0743d9 commit 5d03cf8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions perfzero/docker/Dockerfile_ubuntu_1804_tfx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ RUN pip3 install --upgrade pip
RUN pip install wheel
RUN pip install --upgrade setuptools google-api-python-client pyyaml google-cloud google-cloud-bigquery mock
RUN pip install absl-py
RUN pip install --upgrade --force-reinstall ${tensorflow_pip_spec} ${extra_pip_specs}
RUN if [ ! -z "${extra_pip_specs}" ]; then pip install --upgrade --force-reinstall ${extra_pip_specs}; fi
RUN pip install tfds-nightly
RUN pip install -U scikit-learn

Expand Down Expand Up @@ -128,9 +128,16 @@ RUN if [ ${use_github_version} = 1 ]; then \
# tag in GitHub. \
LATEST_TFX_VERSION=$(yolk -V tfx | head -n 1 | cut -d' ' -f 2-); \
echo LATEST_TFX_VERSION=${LATEST_TFX_VERSION}; \
pip install -e git+https://github.com/tensorflow/tfx.git@${LATEST_TFX_VERSION}#egg=tfx; \
# Note that the GitHub tag has an 'r' prefix, so version 0.21.0 has \
# tag 'r0.21.2' \
pip install -e git+https://github.com/tensorflow/tfx.git@r${LATEST_TFX_VERSION}#egg=tfx; \
pip install tensorflow-transform; \
pip install tensorflow-model-analysis; \
fi;

# Uninstall the TensorFlow version that TFX / the TFX components installed, and
# force install the version requested.
RUN pip uninstall -y tensorflow
RUN pip install --upgrade --force-reinstall ${tensorflow_pip_spec}

RUN pip freeze

0 comments on commit 5d03cf8

Please sign in to comment.