I was following tutorial "Creating a Conan package using a Docker runner" and failed to create zlib package in docker runner. The step which seems to cause the issue is executing conan create command on host which subsequently runs conan create in docker container. It failed with following error message:
ERROR: Profile not found: /tmp/tmp.Xqv39esrqB-docker-runner/docker_example_build
Command itself, which was generated by conan, was:
I overall get the error message. Indeed, there was no /tmp/tmp.Xqv39esrqB-docker-runner/docker_example_build file in the container, nor did /tmp/tmp.Xqv39esrqB-docker-runner/ directory exist. These was a valid absolute path on host, but not in container.
According to tutorial, conan was supposed to replace this path with comething like /root/conanrunner/all/.conanrunner/profiles/. This, however, did not happen.
I tried to investigate it, and logged in running container as root. This lead me to a further surprise: I did not manage to find profiles docker_example_build and docker_example_host at all!
docker$ pwd
/root/conanrunner/all/.conanrunner/profiles
docker$ ls -al
total 8
drwxr-xr-x 2 1000 1000 80 Feb 11 15:23 .
drwxr-xr-x 3 1000 1000 140 Aug 11 17:56 ..
-rw-r--r-- 1 1000 1000 134 Jul 29 19:04 default
-rw-r--r-- 1 1000 1000 134 Feb 11 15:23 std98
docker$ find / -name docker_example_build
My further attempts to run conan config install on directory with profiles and change [runner] sections values were to no avail. My guess that it has something to do with #16364.
How to reproduce it
Essentially, reproducing the issue for me was following this tutorial. I'm providing more detailed info on how exactly I was doing it here.
I will for convenience use in following steps the same directory I was working in. So, the first step would be creating it:
$ mkdir /tmp/tmp.Xqv39esrqB-docker-runner
$ cd /tmp/tmp.Xqv39esrqB-docker-runner
Create Python virtual environment and activate it:
Describe the bug
Environment details:
Description:
I was following tutorial "Creating a Conan package using a Docker runner" and failed to create zlib package in docker runner. The step which seems to cause the issue is executing
conan create
command on host which subsequently runsconan create
in docker container. It failed with following error message:Command itself, which was generated by conan, was:
I overall get the error message. Indeed, there was no /tmp/tmp.Xqv39esrqB-docker-runner/docker_example_build file in the container, nor did /tmp/tmp.Xqv39esrqB-docker-runner/ directory exist. These was a valid absolute path on host, but not in container.
According to tutorial, conan was supposed to replace this path with comething like /root/conanrunner/all/.conanrunner/profiles/. This, however, did not happen.
I tried to investigate it, and logged in running container as root. This lead me to a further surprise: I did not manage to find profiles docker_example_build and docker_example_host at all!
My further attempts to run
conan config install
on directory with profiles and change[runner]
sections values were to no avail. My guess that it has something to do with #16364.How to reproduce it
Essentially, reproducing the issue for me was following this tutorial. I'm providing more detailed info on how exactly I was doing it here.
I will for convenience use in following steps the same directory I was working in. So, the first step would be creating it:
Create Python virtual environment and activate it:
Install
conan
andconan[runners]
packages:Create two profiles and Dockerfile as described in tutorial:
Clone zlib recipe:
Run conan:
The output of the last command is a little to large for it to be included and can be found in the attachments: conan_create.log