'What is the proper way to handle conan profiles in a container?
I want to pack a service in a container. The service is built with usage of conan. How would you put conan profiles (separate repo from the service) in ~/.conan/profiles? I suppose git clone inside a container is not the best solution (private ssh keys etc). Copying conan profile from host to a container is not the best either (conan profile would have to be inside the service folder and then moved to container's ~/.conan/profiles)
Is pinning conan profile repo as a submodule to the service the only option?
service
- conan-profiles
- rest of the service files
And in the Dockerfile
COPY conan-profiles/ /root/.conan/profiles/
COPY . /service
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
