Skip to content

[question] Docker Runner example #20086

Description

@maitrey

###Docker Runner Example
Dear Conan Folks,

I do have a use-case in Linux where I have to create packages inside a container because of QNX environment.
I am looking for examples to play around and perhaps use the feature: https://docs.conan.io/2/reference/runners/docker.html.

We have to create conan packages inside a docker container because we have 3rd party container deliveries with QNX libraries.
Also when building variants and afterwards uploading them using GitHub workflows, we need to do a conan cache save, upload variant and in the upload job download the artifact and do a conan cache restore. This needs docker environment to be created twice(installing conan, conan config install several times for each Docker container variant).
It is unclear if the profile shall be copied to the workspace and edited to indicate the Dockerfile location:

docker_example_host profile

[settings]
build_type=Release
arch=x86_64
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux

[runner]
type=docker
**dockerfile=</my/runner/folder>/mylib**
cache=copy
remove=true
platform=linux/amd64


I think the Docker runner feature looks promising and takes care of these steps.
Could you please share me an example to try out this feature?

Thanks!
Br,
Maitrey

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions