mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +00:00
1dab58a2cf
This search/replace updates all copyright notices to drop the "All rights reserved", Use "ChromiumOS" instead of "Chromium OS" and drops the trailing dots. This fulfills the request from legal and unifies our notices. ./tools/health-check has been updated to only accept this style. BUG=b:246579983 TEST=./tools/health-check Change-Id: I87a80701dc651f1baf4820e5cc42469d7c5f5bf7 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3894243 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com>
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# Copyright 2021 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# To locally build the docker container for usage with dev_container:
|
|
#
|
|
# make -C tools/impl/dev_container crosvm_dev
|
|
#
|
|
# To upload a new version of the container, uprev the `version` file and run;
|
|
#
|
|
# make -C tools/impl/dev_container upload
|
|
#
|
|
# You need to be a Googler to be able to do so. See go/crosvm/infra for access control and
|
|
# authenticate via:
|
|
#
|
|
# gcloud auth configure-docker gcr.io
|
|
|
|
export DOCKER_BUILDKIT=1
|
|
|
|
TAG_BASE=gcr.io/crosvm-infra
|
|
VERSION=$(shell cat version)
|
|
RUST_VERSION=$(shell cat ../../../rust-toolchain | grep channel | grep -E -o "[0-9\.]+")
|
|
BUILD_CONTEXT=$(shell realpath ../../../)
|
|
|
|
DOCKER ?= docker
|
|
|
|
all: crosvm_dev
|
|
|
|
upload: all
|
|
$(DOCKER) push $(TAG_BASE)/crosvm_dev:$(VERSION)
|
|
|
|
crosvm_dev:
|
|
$(DOCKER) build \
|
|
--build-arg RUST_VERSION=$(RUST_VERSION) \
|
|
-t $(TAG_BASE)/$@:$(VERSION) \
|
|
-f Dockerfile \
|
|
$(BUILD_CONTEXT)
|
|
|
|
.PHONY: all crosvm_dev upload
|