-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
68 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
- master | ||
- r* | ||
env: | ||
USE_BAZEL_VERSION: "3.7.2" | ||
USE_BAZEL_VERSION: "5.1.1" | ||
|
||
jobs: | ||
yapf-test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x -e | ||
|
||
DOCKER_BUILDKIT=1 docker build \ | ||
docker build \ | ||
-f tools/docker/dev_container.Dockerfile \ | ||
--build-arg TF_VERSION=2.5.1 \ | ||
--build-arg TF_PACKAGE=tensorflow-cpu \ | ||
--target dev_container_cpu \ | ||
-t tfaddons/dev_container:latest-cpu ./ | ||
--build-arg TF_PACKAGE=tensorflow-gpu \ | ||
--build-arg PY_VERSION=$PY_VERSION \ | ||
--no-cache \ | ||
--target dev_container \ | ||
-t tfra/dev_container:latest-python$PY_VERSION ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
#syntax=docker/dockerfile:1.1.5-experimental | ||
FROM tensorflow/tensorflow:2.1.0-custom-op-ubuntu16 as dev_container_cpu | ||
ARG PY_VERSION | ||
ARG IMAGE_TYPE | ||
|
||
# Currenly all of our dev images are GPU capable but at a cost of being quite large. | ||
# See https://github.com/tensorflow/build/pull/47 | ||
FROM tensorflow/build:latest-python$PY_VERSION as dev_container | ||
ARG TF_PACKAGE | ||
ARG TF_VERSION | ||
|
||
# Temporary until custom-op container is updated | ||
RUN ln -sf /usr/bin/python3 /usr/bin/python | ||
RUN ln -sf /usr/local/bin/pip3 /usr/local/bin/pip | ||
RUN pip uninstall $TF_PACKAGE -y | ||
RUN pip install --default-timeout=1000 $TF_PACKAGE==$TF_VERSION | ||
|
||
COPY tools/install_deps /install_deps | ||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /install_deps/black.txt \ | ||
-r /install_deps/flake8.txt \ | ||
RUN pip install -r /install_deps/yapf.txt \ | ||
-r /install_deps/pytest.txt \ | ||
-r /install_deps/typedapi.txt \ | ||
-r /tmp/requirements.txt | ||
|
||
RUN bash /install_deps/buildifier.sh | ||
RUN bash /install_deps/clang-format.sh | ||
|
||
ENV TFRA_DEV_CONTAINER="1" | ||
COPY tools/docker/install/install_bazel.sh /install/ | ||
RUN /install/install_bazel.sh "5.1.1" | ||
|
||
ENV ADDONS_DEV_CONTAINER="1" | ||
|
||
# Clean up | ||
RUN apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters