commit | 502a7e6e423faf819b72d419971c512217fff103 | [log] [tgz] |
---|---|---|
author | Kaylee Lubick <kjlubick@google.com> | Thu Aug 22 13:22:07 2024 -0400 |
committer | Kaylee Lubick <kjlubick@google.com> | Thu Aug 22 17:22:20 2024 +0000 |
tree | 41bf23ee0ea1f0ccc031c17f84ac1b870d3f611a | |
parent | 504f49204b2117774e29927f14ef2a04cc41994a [diff] |
Add script to create Docker image to build Skia and run fiddler See linked bug for overall design and plan. This is inspired by cipd-base [1] with some modifications based on skia-build-tools [2] and the existing fiddler container [3]. As a follow-up, I'll create a Louhi flow [4] to make this image, kick off a flow and then add a new skia_app_container that uses it for fiddler-base. [1] https://github.com/google/skia-buildbot/blob/504f49204b2117774e29927f14ef2a04cc41994a/kube/build_base_cipd_release [2] https://github.com/google/skia/blob/04ce2e2bfc3536dfac23224b116b4473d32d436d/docker/skia-build-tools/Dockerfile [3] https://github.com/google/skia-buildbot/blob/504f49204b2117774e29927f14ef2a04cc41994a/fiddlek/BUILD.bazel#L87-L96 [4] http://go/louhicl/158081 Bug: b/361559681 Change-Id: Ibb8201aae1b475164bbd69b3ae2e6f0154c8eac9 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/892538 Reviewed-by: Eric Boren <borenet@google.com>
This repo contains infrastructure code for Skia.
The infrastructure code is generally built to run on x86 linux. Running on other platforms may be possible but is not officially supported and success will vary depending on the command.
The main source code repository is a Git repository hosted at https://skia.googlesource.com/buildbot.git. It is possible to check out this repository directly with git clone
or via go get
.
Using git clone
allows you to work in whatever directory you want. You will still need to set GOPATH in order to build some apps (recommended to put this in a cache dir). E.g.:
$ cd ${WORKDIR} $ git clone https://skia.googlesource.com/buildbot.git $ export GOPATH=${HOME}/.cache/gopath/$(basename ${WORKDIR}) $ mkdir $GOPATH $ cd buildbot
Almost all applications are built with Bazel, and bazelisk is the recommended tool to ensure you have the right version of bazel installed:
go install github.com/bazelbuild/bazelisk@latest go install github.com/bazelbuild/buildtools/buildifier@latest go install github.com/kisielk/errcheck@latest go install golang.org/x/tools/cmd/goimports@latest go install github.com/mikefarah/yq/v4@latest go install go.chromium.org/luci/client/cmd/...@latest
export PATH=$PATH:$(go env GOPATH)/bin
sudo apt-get install jq
bazelisk build --config=mayberemote //...
bazelisk test --config=mayberemote //...
To update generated code run the following in any directory:
go generate ./...
Install Cloud SDK.
Use this command to run the presubmit tests:
./run_unittests --small