0

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?

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
CmasterG
  • 155
  • 1
  • 2
  • 9
  • 2
    Doesn'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 Answers1

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