forked from googleapis/googleapis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update Kokoro build toolchain: run from docker, update to grpc…
… 1.36.4 and bazel 4.0.0 PiperOrigin-RevId: 370536131
- Loading branch information
1 parent
60e129d
commit de7fb25
Showing
9 changed files
with
48 additions
and
45 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# See https://github.com/bazelbuild/bazelisk | ||
USE_BAZEL_VERSION=3.0.0 | ||
USE_BAZEL_VERSION=4.0.0 |
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,2 +1 @@ | ||
build --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6 | ||
test --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6 | ||
|
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM python:3.8 | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y \ | ||
zip \ | ||
build-essential \ | ||
python-dev \ | ||
python3-dev \ | ||
openjdk-11-jdk | ||
|
||
RUN mkdir -p /tools | ||
WORKDIR /tools | ||
RUN curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.8.0/bazelisk-linux-amd64 -o bazelisk | ||
RUN chmod +x bazelisk | ||
RUN curl -L https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-4.0.0-linux-x86_64 -o bazel | ||
RUN chmod +x bazel | ||
WORKDIR / | ||
|
||
ENV PATH="/tools:${PATH}" | ||
|
||
ENV BAZELISK_BIN=/tools/bazelisk | ||
ENV BAZEL_BIN=/tools/bazelisk | ||
|
||
RUN apt-get clean | ||
|
||
ENTRYPOINT [ "/bin/bash" ] |
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,3 +1,3 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
build_file: "googleapis/.kokoro/build.sh" | ||
build_file: "googleapis/.kokoro/start.sh" |
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,3 +1,3 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
build_file: "googleapis/.kokoro/build.sh" | ||
build_file: "googleapis/.kokoro/start.sh" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export BAZEL_ROOT=/bazel_root | ||
|
||
docker container run \ | ||
--env KOKORO_ROOT --env KOKORO_ARTIFACTS_DIR --env KOKORO_PIPER_DIR --env BAZEL_ROOT \ | ||
--volume ${KOKORO_ROOT}:${KOKORO_ROOT} \ | ||
--tmpfs ${BAZEL_ROOT}:exec \ | ||
--workdir ${KOKORO_ROOT} \ | ||
--ipc=host \ | ||
--entrypoint ${KOKORO_ARTIFACTS_DIR}/github/googleapis/.kokoro/build.sh \ | ||
gcr.io/gapic-images/googleapis:20210423 |
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