mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
This reverts commit 6a2b1fda85
.
Reason for revert: Broke mingw64 builds
Original change's description:
> dev_container: Fix podman and enable unprivileged containers
>
> To enable podman, the Dockerfile has been split into a root
> run Dockerfile and one that adds a non-root user.
>
> The following combinations have been tested:
>
> ./tools/dev_container -v --clean --podman --unprivileged
> ./tools/dev_container -v --clean --podman
> ./tools/dev_container -v --clean --unprivileged
>
> And warnings have been added to ensure users are aware that
> the only fully supported variant is running a privileged
> docker container:
>
> ./tools/dev_container -v --clean
>
> The unprivileged containers will allow us to validate if
> unit tests require privileged system access.
>
> BUG=None
> TEST=See above
>
> Change-Id: I185b1d9c3829674986305b0e72a39b1a4ba11b98
> Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3971029
> Reviewed-by: Zihan Chen <zihanchen@google.com>
> Commit-Queue: Dennis Kempin <denniskempin@google.com>
> Reviewed-by: Dennis Kempin <denniskempin@google.com>
Bug: None
Change-Id: Id57686ed869abcfb54431aa328c54234b9465eb7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3979385
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Auto-Submit: Dennis Kempin <denniskempin@google.com>
37 lines
901 B
Makefile
37 lines
901 B
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)
|
|
BUILD_CONTEXT=$(shell realpath ../../../)
|
|
|
|
DOCKER ?= docker
|
|
|
|
all: crosvm_dev
|
|
|
|
upload: all
|
|
$(DOCKER) push $(TAG_BASE)/crosvm_dev:$(VERSION)
|
|
|
|
crosvm_dev:
|
|
$(DOCKER) build \
|
|
-t $(TAG_BASE)/$@:$(VERSION) \
|
|
-f Dockerfile \
|
|
$(BUILD_CONTEXT)
|
|
|
|
.PHONY: all crosvm_dev upload
|