<p>Hi, I'd be glad to get your validation and advice regarding the following Jenkins + scripted pipeline + docker + AWS ECS architecture:</p>
<ol>
<li>Pipeline runs testing step in a dockerized agent (delegated to ECS, see next) + </li>
<li>Jenkins cloud plugin instantiate a new ECS task (slave image with Docker inside, mounted to /var/run/docker.sock) + </li>
<li>The test/step invokes "ssh 'docker-compose --exit-code-from my testing container' (need to isolate the network here so two compose can run at once, not sure how) + </li>
<li>I copy back all the test artifacts XML to the workspace (how?) + </li>
<li>Jenkins kills the cloud task +</li>
<li>Pipeline is back to non-dockerized agent, using plugins it evaluates the test results and set the build status (if I perform the evaluation within docker than I need to install Jenkins there, not sure if this holds true)</li>
</ol>
<hr/>**评论:**<br/><br/>whizack: <pre><p>for #4 you'll need to volume mount the results outputs to folders then aggregate/upload the results to something like s3 (or some generic object storage like minio) after the run completes</p>
<p>i don't know of a clean way to isolate #3 at the network level</p></pre>loafoe: <pre><p>Have a look at <a href="https://concourse.ci" rel="nofollow">https://concourse.ci</a></p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传