大厅将码头文件添加到docker图像一次 [英] Concourse add file to docker image just once
问题描述
我正在为我们的构建系统使用大厅。
Concourse缓存了docker映像,这样我们就不需要在后续的运行中完成下载过程。 / p>
我想将一个二进制文件添加到我将从互联网上拉出来的停靠点图像,但是我只想在第一次拖放Docker图像时做到这一点
任何想法如何做到这一点?
您应该查看 docker-image-resource 。您可以使用所需的所有依赖项定义Dockerfile,然后将其作为可用于后续版本的资源。我们在此写了一个教程,可能会清楚事情有点
I am using concourse for our build system.
Concourse caches docker images so that we don't need to go through the download process each on subsequent runs.
I want to add a binary file to the docker image which I will pull from the internet, but I only want to do it the first time the docker image is pulled and created by concourse.
Any ideas how I can do this?
You should check out the docker-image-resource. You can define a Dockerfile with all of the dependencies that you want, and then push that as a resource that can be used in later builds. We wrote a tutorial on this that might clear things up a bit.
这篇关于大厅将码头文件添加到docker图像一次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!