Skip to content

Commit

Permalink
Merge pull request #112 from privacysandbox/release-0.78.0
Browse files Browse the repository at this point in the history
Release 0.78.0
  • Loading branch information
pmeric authored Jan 31, 2025
2 parents bf14632 + ac94af6 commit 62184c2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## 0.78.0 (2025-01-31)


### Features

* Run bazel in privileged container

## 0.77.0 (2025-01-13)


Expand Down
5 changes: 4 additions & 1 deletion tools/bazel-debian
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ declare -a APP_ARGS
declare -r -a ARGLIST=("$@")
partition_array ARGLIST BAZEL_ARGS APP_ARGS

# run bazel without sandboxing
BAZEL_ARGS+=("--spawn_strategy=local")

# shellcheck disable=SC2086
"${CBUILD}" ${EXTRA_CBUILD_ARGS} --seccomp-unconfined --image "${IMAGE}" --cmd "
"${CBUILD}" ${EXTRA_CBUILD_ARGS} --seccomp-unconfined --privileged --image "${IMAGE}" --cmd "
printf 'bazel output_base: [%s]\n' \"\$(bazel info output_base 2>/dev/null)\"
bazel ${BAZEL_STARTUP_ARGS} ${BAZEL_ARGS[*]@Q} ${BAZEL_EXTRA_ARGS} ${APP_ARGS[*]@Q}
"
10 changes: 10 additions & 0 deletions tools/cbuild
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ USAGE
--without-embedded-docker Disable docker client within container
--docker-network <value> Specify docker network type or name, value passed to docker run --network. Default: ${DOCKER_NETWORK}
--seccomp-unconfined Run docker container without a seccomp profile
--privileged Run in a privileged docker container
--verbose Enable verbose output
Profiler flags:
Expand Down Expand Up @@ -81,6 +82,7 @@ declare -i WITH_DOCKER_SOCK=1
declare -i WITH_CMD_PROFILER=0
DOCKER_NETWORK="${DOCKER_NETWORK:-bridge}"
declare -i DOCKER_SECCOMP_UNCONFINED=0
declare -i DOCKER_PRIVILEGED=0
declare -i ONE_TIME_CONTAINER=0
declare -i KEEP_CONTAINER_RUNNING=0
declare LONG_RUNNING_CONTAINER_TIMEOUT=8h
Expand Down Expand Up @@ -133,6 +135,10 @@ while [[ $# -gt 0 ]]; do
DOCKER_SECCOMP_UNCONFINED=1
shift
;;
--privileged)
DOCKER_PRIVILEGED=1
shift
;;
--verbose)
VERBOSE=1
shift
Expand Down Expand Up @@ -211,6 +217,10 @@ if [[ ${DOCKER_SECCOMP_UNCONFINED} -eq 1 ]]; then
DOCKER_RUN_ARGS+=("--security-opt=seccomp=unconfined")
fi

if [[ ${DOCKER_PRIVILEGED} -eq 1 ]]; then
DOCKER_RUN_ARGS+=("--privileged")
fi

if [[ ${WITH_CMD_PROFILER} -eq 1 ]]; then
if [[ ${IMAGE} != build-debian ]]; then
printf "error: --cmd-profiler is only compatible with build-debian\n" &>/dev/stderr
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.77.0
0.78.0

0 comments on commit 62184c2

Please sign in to comment.