xref: /aosp_15_r20/external/crosvm/tools/impl/dev_container/README.md (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1*bb4ee6a4SAndroid Build Coastguard Worker# Dev Container
2*bb4ee6a4SAndroid Build Coastguard Worker
3*bb4ee6a4SAndroid Build Coastguard WorkerThis directory contains the dev container used by developers locally as well as the crosvm CI
4*bb4ee6a4SAndroid Build Coastguard Workerinfrastructure.
5*bb4ee6a4SAndroid Build Coastguard Worker
6*bb4ee6a4SAndroid Build Coastguard WorkerThe container is defined by `tools/impl/dev_container/Dockerfile`, which will primarily run the
7*bb4ee6a4SAndroid Build Coastguard Worker`tools/install*` scripts to install all dependencies.
8*bb4ee6a4SAndroid Build Coastguard Worker
9*bb4ee6a4SAndroid Build Coastguard WorkerTo include new dependencies in the container, modify the corresponding install script and rebuild
10*bb4ee6a4SAndroid Build Coastguard Workerthe container with:
11*bb4ee6a4SAndroid Build Coastguard Worker
12*bb4ee6a4SAndroid Build Coastguard Worker```
13*bb4ee6a4SAndroid Build Coastguard Workermake -C tools/impl/dev_container crosvm_dev
14*bb4ee6a4SAndroid Build Coastguard Worker```
15*bb4ee6a4SAndroid Build Coastguard Worker
16*bb4ee6a4SAndroid Build Coastguard WorkerThis will make the image available for testing locally with `tools/dev_container`. You may have to
17*bb4ee6a4SAndroid Build Coastguard Workerstop the previous container to pick up the new image `tools/dev_container --stop`.
18*bb4ee6a4SAndroid Build Coastguard Worker
19*bb4ee6a4SAndroid Build Coastguard WorkerTo upload the new version of the container, uprev the `version` file and run;
20*bb4ee6a4SAndroid Build Coastguard Worker
21*bb4ee6a4SAndroid Build Coastguard Worker```
22*bb4ee6a4SAndroid Build Coastguard Workermake -C tools/impl/dev_container upload
23*bb4ee6a4SAndroid Build Coastguard Worker```
24*bb4ee6a4SAndroid Build Coastguard Worker
25*bb4ee6a4SAndroid Build Coastguard WorkerYou need to be a Googler to be able to do so. See go/crosvm/infra for access control and
26*bb4ee6a4SAndroid Build Coastguard Workerauthenticate via:
27*bb4ee6a4SAndroid Build Coastguard Worker
28*bb4ee6a4SAndroid Build Coastguard Worker```
29*bb4ee6a4SAndroid Build Coastguard Workergcloud auth configure-docker gcr.io
30*bb4ee6a4SAndroid Build Coastguard Worker```
31