我可以在 docker 容器中运行 Xcode 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28574769/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:03:53  来源:igfitidea点击:

Can I run Xcode in a docker container?

xcodedocker

提问by Chris

Can I run Xcode in a docker container? I'd like to dockerise an Xcode CI system, just wondering if this is possible.

我可以在 docker 容器中运行 Xcode 吗?我想 dockerise 一个 Xcode CI 系统,只是想知道这是否可能。

采纳答案by Tony O'Hagan

This repo from Docker Hackathon 2015describes how to build and run iOS apps with the docker client. Is that what you're after?

这个来自Docker Hackathon 2015 的repo描述了如何使用 docker 客户端构建和运行 iOS 应用程序。那是你追求的吗?

Watch the video:

观看视频:

Secret sauce is in server.jsthat implements a REST API to simulate a docker server. So in fact it's not actually running iOS in a real Linux docker server - rather it implements the docker API and then acts as a proxy to ios-sim (run) and XCode (build).

秘诀在server.js 中,它实现了 REST API 来模拟 docker 服务器。所以实际上它实际上并不是在真正的 Linux docker 服务器中运行 iOS——而是它实现了 docker API,然后充当 ios-sim(运行)和 XCode(构建)的代理。