Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker 是否可以在Bitbucket管道内的Android emulator上运行应用程序测试?_Docker_Android Emulator_Bitbucket_Ui Automation_Bitbucket Pipelines - Fatal编程技术网

Docker 是否可以在Bitbucket管道内的Android emulator上运行应用程序测试?

Docker 是否可以在Bitbucket管道内的Android emulator上运行应用程序测试?,docker,android-emulator,bitbucket,ui-automation,bitbucket-pipelines,Docker,Android Emulator,Bitbucket,Ui Automation,Bitbucket Pipelines,我有一个运行Appium服务器和Android Emulator的Docker映像。我完全能够在我的计算机中运行基于该映像的容器(它需要--privileged标志)。我还能够在模拟器中运行自动测试,没有任何问题 现在,我想在Bitbucket管道上运行模拟器。但是,出于安全原因,Bitbucket管道不允许使用--privileged(以及许多其他Docker标志)启动Docker容器。据我所知,这个标志负责运行模拟器 我还尝试将Docker映像添加到bitbucket-pipelines.y

我有一个运行Appium服务器和Android Emulator的Docker映像。我完全能够在我的计算机中运行基于该映像的容器(它需要--privileged标志)。我还能够在模拟器中运行自动测试,没有任何问题

现在,我想在Bitbucket管道上运行模拟器。但是,出于安全原因,Bitbucket管道不允许使用--privileged(以及许多其他Docker标志)启动Docker容器。据我所知,这个标志负责运行模拟器

我还尝试将Docker映像添加到bitbucket-pipelines.yml文件中,希望能够直接在主机中运行模拟器,而不是在容器中运行,但也没有成功,我从命令“adb设备”和“emulator-list AVD”中得到了空结果


有人知道有什么可以帮助实现这个目标吗?我的意思是,在Bitbucket管道中在Android上运行自动UI测试?

是的,这是可能的。下面的链接中有几个答案,不需要使用
--privileged
标志:

在Ming C的回答中,有一个链接的github页面,其中有一个关于如何在Docker机器上运行模拟器的指南:


非常感谢您的建议@IDE先生!看来,解决方案将通过ARM模拟器!