Concourse add file to docker image just once
Asked Answered
A

1

2

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?

Araarab answered 23/1, 2017 at 11:12 Comment(1)
Build your own image and push it to a repo.Norbert
L
2

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.

Lookeron answered 23/1, 2017 at 20:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.