Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .kokoro/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ -f "$CACHE_CONFIG_FILE" ]; then
source "$CACHE_CONFIG_FILE"
fi

"${TOOL_DIR}/buildutils/build_packages.sh" -r "${BAZEL_REMOTE_CACHE}" -c "${CACHE_VERSION}"
"${TOOL_DIR}/buildutils/build_packages_cw.sh" -r "${BAZEL_REMOTE_CACHE}" -c "${CACHE_VERSION}"

# Add test user to the kokoro group so it has access to the source dir
"${TOOL_DIR}/testutils/prepare_host.sh" -d "${REPO_DIR}" -u testrunner -g kokoro
Expand Down
33 changes: 33 additions & 0 deletions tools/buildutils/build_packages_cw.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

# Copyright (C) 2026 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -e -x

sudo apt-get install -y podman

REPO_DIR="$(realpath "$(dirname "$0")/../..")"

pwd
cd "${REPO_DIR}"

podman build \
--file "tools/buildutils/cw/Containerfile" \
--tag "android-cuttlefish-build:latest" \
.

podman run -v=$PWD:/mnt/build -w /mnt/build android-cuttlefish-build:latest base $@
podman run -v=$PWD:/mnt/build -w /mnt/build android-cuttlefish-build:latest frontend $@

Loading