sql-server - 在 vs2017-win2016 托管代理上使用 SQL Server docker 容器
问题描述
我正在尝试使用 Azure Pipelines 为pymssql
Windows 和 Linux 创建更简化的 CI 流程。Linux 版本能够成功下载并启动 DockerMSSQL
映像以进行集成测试,但是当我尝试为 Windows 执行相同操作时,即使超时 45 分钟,映像也无法成功下载。有人MSSQL
在 MS Windows 托管代理上成功启动了 Docker 容器吗?
https://dev.azure.com/alexander-hagerman/pymssql/_build/results?buildId=48
azure-pipelines.yaml
jobs:
- job: Windows
timeoutInMinutes: 45
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python37:
python.version: '3.7'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: docker run -d -p 1433:1433 -e sa_password=YourStrong@Passw0rd -e ACCEPT_EULA=Y microsoft/mssql-server-windows-developer:latest
displayName: 'Start SQL Server container service'
- script: cp tests/tests.cfg.tpl tests/tests.cfg
displayName: "Create config file from template for test connections."
- script: pip install tox cython
displayName: 'Install initial dependencies'
- script: tox -e py
displayName: 'Run Tox'
解决方案
推荐阅读
- apache-kafka - 在 Kafka 2.3 中使用 kafka-configs.sh 超时
- huggingface-transformers - 拥抱脸的变形金刚在哪里拯救模型?
- iis - 是否可以从经典的 asp 页面读取机器根配置 appSettings 变量?
- c++ - 了解遗留代码:消除径向镜头畸变的算法
- android-fragments - 处理xamarin片段中的按钮单击事件
- python - 如何将python中的n个整数列表更改为普通空格分隔的整数
- batch-file - 在新的 cmd 中运行命令并将返回结果保存到文件中
- java - 如何在 Kotlin 中将字符串转换为对象
- python - 使用 Python 从 Outlook 获取电子邮件列表
- flutter - 更改图标的不透明度