Skip to content

Commit

Permalink
Update Dockerfile and cloudbuild.yaml to use smaller container
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 647760019
  • Loading branch information
jcking authored and copybara-github committed Jun 28, 2024
1 parent 5cbe9ce commit 3dacdc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ ARG BAZEL_VERSION="7.2.1"
ADD https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh /tmp/install_bazel.sh
RUN /bin/bash /tmp/install_bazel.sh && rm /tmp/install_bazel.sh

# https://bazel.build/run/build#running-bazel-airgapped
RUN mkdir -p /bazel-distdir && \
mkdir -p /tmp/empty_workspace && \
cd /tmp/empty_workspace && \
touch WORKSPACE && \
bazel fetch --repository_cache=/bazel-distdir && \
cd / && \
rm -rf /tmp/* && \
rm -rf /root/.cache/bazel

RUN mkdir -p /workspace
RUN mkdir -p /bazel

Expand Down
4 changes: 2 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- name: 'gcr.io/cel-analysis/gcc-9@sha256:6f2f565b870373a3d33affa3e56748fd296a7322cd421a0b2c0b6c414b6dab5a'
- name: 'gcr.io/cel-analysis/gcc-9@sha256:5c08ae90e33a33010c8e518173a926143ba029affb54ceec288f375f474ea87f'
args:
- '--output_base=/bazel' # This is mandatory to avoid steps accidently sharing data.
- 'test'
Expand All @@ -14,7 +14,7 @@ steps:
- '--local_ram_resources=HOST_RAM*.4'
id: gcc-9
waitFor: ['-']
- name: 'gcr.io/cel-analysis/gcc-9@sha256:6f2f565b870373a3d33affa3e56748fd296a7322cd421a0b2c0b6c414b6dab5a'
- name: 'gcr.io/cel-analysis/gcc-9@sha256:5c08ae90e33a33010c8e518173a926143ba029affb54ceec288f375f474ea87f'
env:
- 'CC=clang-11'
- 'CXX=clang++-11'
Expand Down

0 comments on commit 3dacdc8

Please # to comment.