I have the following problem: I am using Conan and in one of my conanfiles I am downloading from a private repository. That works so far, but when I am using Docker it complains that it doesn't have the username and password for this repository. Is there a recommended way to pass the username and password for a private repository to conan?
Asked
Active
Viewed 512 times
0
-
2Doesn't seem like a c++ problem to me – UKMonkey Feb 26 '18 at 11:06
-
You mean, like env-vars? You can define login and password environment variables: http://docs.conan.io/en/latest/reference/env_vars.html#conan-login-username-conan-login-username-remote-name Is this what you are looking for? – drodri Feb 26 '18 at 14:44
1 Answers
0
I don't know conan
but you can pass user and password in this scenario using environment variables and make some script that gets those values and configure conan
or creating a config file and passes it with COPY command when you build your image with Dockerfile

Giorgio Cerruti
- 896
- 6
- 17