blob: c439c2cb600e9f44e827676ae75ea551120a8f02 [file] [log] [blame]
Leopold Schabel5c80aca2019-10-22 15:48:58 +02001startup --batch_cpu_scheduling --io_nice_level 7
Leopold Schabel3dba5322020-04-28 12:23:04 +02002build --jobs 12 --local_ram_resources=HOST_RAM*0.5
Leopold Schabel8c8e6772020-03-12 20:24:13 +01003test --jobs 12 --test_output=errors
Lorenz Brun5d7d2a42020-04-06 14:11:02 +02004
Leopold96b03c72022-06-08 12:59:58 +02005# selinux:
6# build with SELinux (containerd, kubelet)
7# no_zfs,no_aufs,no_devicemapper:
8# disable containerd features we don't need
9# providerless,dockerless:
10# build k8s without cloud provider and docker support
Lorenz Brund13c1c62022-03-30 19:58:58 +020011build --define gotags=selinux,seccomp,no_zfs,no_aufs,no_devicemapper,providerless,dockerless
Serge Bazanskibb7db922020-04-30 12:43:10 +020012
13# Build with C++17.
14build --cxxopt=-std=c++17
15
Lorenz Brunf6402112020-05-04 16:50:31 +020016# Set workspace status file and stamp
17build --stamp --workspace_status_command=./build/print-workspace-status.sh
Serge Bazanski385c12f2020-06-17 12:12:42 +020018
19# Use our custom-configured host C++ toolchain.
20build --crosstool_top=//build/toolchain:host_cc_suite
21build --cpu=k8
22
23# Use the default Bazel C++ toolchain to build the tools used during the
24# build.
25build --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
Serge Bazanskic3ad8462021-01-08 16:45:51 +010026
27# Load CI bazelrc if present.
28try-import %workspace%/ci.bazelrc