是否可以在具有高山风味的docker容器内构建AOSP

是否可以在具有高山风味的docker容器内构建AOSP

本文介绍了是否可以在具有高山风味的docker容器内构建AOSP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是AOSP的新手,我正在尝试在Docker上设置完整的AOSP,以构建像Alpine或Ubuntu映像之类的Docker映像,如果不可能的话,请让我知道为什么无法执行在docker映像中设置AOSP.

I'm very much new to AOSP and I'm trying setup the complete AOSP on the Docker to build a Docker Image like Alpine or Ubuntu image, if it not possible please let me know the reasons why it is not possible to setup AOSP inside the docker image.

还是我需要编写Dockerfile来构建映像?

Or Do I need to write the Dockerfile to build the image?

如果有一些好的摘要,请帮助我.

Please help me if it possible with some good snippets.

在此先感谢:)

推荐答案

Android团队提供了Dockerfiledocker build命令来构建图像,以及docker run命令来运行容器: https://android.googlesource.com/platform/build/+/master/tools/docker

Android team has provided a Dockerfile, docker build command to build the image, and docker run command to run a container : https://android.googlesource.com/platform/build/+/master/tools/docker

如此处所述,您可以使用docker run命令中的-v选项将本地AOSP源树安装到容器上.

As mentioned there, you can mount your local AOSP source tree to the container using -v option in docker run command.

我还没有尝试在Docker容器中构建AOSP.但是在这个问题中,@ VasileM提到他使用了Android提供的Docker实例来构建AOSP.

I have not tried to build AOSP in a Docker container. But in this question, @VasileM has mentioned that he uses the Android provided Docker instance to build AOSP.

这篇关于是否可以在具有高山风味的docker容器内构建AOSP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 11:40