Skip to content

Gathering the install code to make it easier to update versions. #1106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/ci_build/install/bazel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set -e
export WORKDIR=$(pwd)
mkdir /tmp/tf_addons_84d6d48
cd /tmp/tf_addons_84d6d48
git clone https://github.com/abhinavsingh/setup-bazel.git
bash ./setup-bazel/setup-bazel.sh 1.1.0
rm -rf /tmp/tf_addons_84d6d48
cd "$WORKDIR"
4 changes: 2 additions & 2 deletions tools/docker/cpu_tests.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM python:3.5
RUN pip install tensorflow-cpu==2.1.0

RUN apt-get update && apt-get install sudo
RUN git clone https://github.com/abhinavsingh/setup-bazel.git
RUN bash ./setup-bazel/setup-bazel.sh 1.1.0
COPY tools/ci_build/install/bazel.sh ./
RUN bash bazel.sh

COPY requirements.txt ./
RUN pip install -r requirements.txt
Expand Down
9 changes: 4 additions & 5 deletions tools/docker/sanity_check.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ FROM python:3.5 as valid_build_files
RUN pip install tensorflow-cpu==2.1.0

RUN apt-get update && apt-get install sudo
RUN git clone https://github.com/abhinavsingh/setup-bazel.git
RUN bash ./setup-bazel/setup-bazel.sh 1.1.0
COPY tools/ci_build/install/bazel.sh ./
RUN bash bazel.sh

COPY ./ /addons
WORKDIR /addons
Expand Down Expand Up @@ -69,9 +69,8 @@ RUN touch /ok.txt
# Bazel code format
FROM alpine:3.11 as check-bazel-format

RUN wget -O /usr/local/bin/buildifier \
https://github.com/bazelbuild/buildtools/releases/download/0.29.0/buildifier
RUN chmod +x /usr/local/bin/buildifier
COPY ./tools/ci_build/install/buildifier.sh ./
RUN sh buildifier.sh

COPY ./ /addons
RUN buildifier -mode=check -r /addons
Expand Down