r/docker
Question over general docker usage/concept
- upvotes
- 2
- comments
- 11
Post
Greetings, I would like to share a problem that I'm facing with Docker, looking for some ideas. In our company we've started to use docker hosted in an Azure DevOps cloud ubuntu machine, there we have an Azure self-hosted agent installed. We work only with firmware projects and this is our build server. We have this setup for 3 years. Usually, I generate the docker images on demand according with the project requirements.In our firmware projects hosted in git we have a yaml pipeline configuration where we set the image tag so that the proper container can be raised to process the build. We have a requirement from safety standards (we must keep the project artifacts/infrastructure from 10 to 15 years), because of that I keep all the dependencies I need to reproduce/re-create an image as debian installers (for offline installation). I've created a script which runs prior the build process, which creates a yaml manifest containing all the image packages and include this manifest also in the image (at /etc/manifest.yaml) for runtime check. Then it's possible to verify the content via the manifest hash. Examples of dependencies we have are cmake, unit test tools, static code analyzer, and so on.We decided to keep everything in a single image because most of the tools require the compiler, so that the image complexity keeps lower as possible. As we have different projects...
Keep reading with a free account
The rest of this post, and every signal for Docker, is in your free account.
Extracted from these lines
As our concept is based on tags, and the docker tags are not the most reliable thing in the world, I keep also the tagged image name as a LABEL within the image.
From the post
At this point I ask myself if we are going in the right direction and the increased complexity in the toolchain management is because of the concept we've decided to go for
From the post
Note: I know that I can save the image in a registry, in parallel I'm trying to find solutions (if possible) to reduce storage costs (each image ~20GB).
From the post