conan-io / conan-docker-tools

Some tools for automated package generation
MIT License
223 stars 90 forks source link

How to use conan 2.0 in bitbucket-pipelines.yml #533

Closed burlrice closed 1 year ago

burlrice commented 1 year ago

What is your question?

I have this bitbucket-pipelines.yml that runs on our build server:

image

When it executes, "conan --version" it returns "Conan version 1.59.0".

My problem is: I need "Conan version 2.0.6". What docker image should I be using?

memsharded commented 1 year ago

Hi @burlrice

There is no standard "recommended" Docker image to use for Conan. We are maintaining some in the conan-docker-tools repo in https://github.com/conan-io/conan-docker-tools, you can check there and see if some of those fit better.

The recommendation would probably be to create your own image containing the exact version of Conan you want to use, or do a pip install conan in the pipeline (it is relatively fast) with the version that you want.

I am moving this ticket to the conan-docker-tools repo, maybe @uilianries can advice further

uilianries commented 1 year ago

@burlrice It depends what compiler version do you need, but you can use the pattern:

docker pull conanio/clang11-ubuntu16.04:2.0.8

https://hub.docker.com/r/conanio/clang11-ubuntu16.04/tags

We have a exclusive docker image only with Conan client installed, but is outdated and need to update the conan client installed with pip install -U conan command.

docker pull conanio/conan:latest

I'll take a look later to update it to the latest version.