我的系统是 Windows 8.1,其中包含我的 selenium TestNG 项目的批处理文件。
- 现在在我的办公系统中,操作系统是 Ubuntu,我希望该脚本在 docker 中运行。为此,我必须从 Dockerfile 构建一个 docker 镜像。 Dockerfile 包括 Windows 操作系统、Java、Jenkins、Selenium 以及我项目的 lib 和 src 文件。
- 我们可以在 Docker 容器中安装 Windows 吗?
- 谁能告诉我如何使用这些文件准备 Dockerfile 并从该 Dockerfile 构建 Docker 镜像的分步过程吗?
最佳答案
您可以检查此 Windows 操作系统 (seviceCore) 的 docker 镜像 https://hub.docker.com/r/microsoft/windowsservercore/
Java、Jenkins 和 selenium 可以安装在该镜像之上并执行。
关于java - 使用 Windows 操作系统、Java、Selenium、Jenkins 从 Dockerfile 构建 docker 容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52095804/