Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/scripts/remote-image/create-cc-toolchain-within-image.sh
2867 views
1
#!/usr/bin/env bash
2
3
set -eux -o pipefail
4
5
apt-get update
6
apt-get install -qy ca-certificates curl
7
8
curl -L -o /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64
9
chmod +x /usr/bin/bazel
10
11
temp="$(mktemp -d)"
12
cd "$temp"
13
14
touch WORKSPACE BUILD.bazel
15
bazel build @local_config_cc//...
16
rm -rf /code/common/remote-build/cc
17
mkdir /code/common/remote-build/cc
18
cp -Lr $(bazel info output_base)/external/local_config_cc/* /code/common/remote-build/cc
19
20