Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor docker runner: new logging system and fixed several bugs #17542

Open
wants to merge 9 commits into
base: develop2
Choose a base branch
from

Conversation

perseoGI
Copy link
Contributor

@perseoGI perseoGI commented Dec 31, 2024

Changelog: Feature: Fix several bugs in docker runner, added new configuration options and improved logging system
Docs: conan-io/docs#3977

  • Homogeince logs with the the rest of the runners
  • Add new configuration options such as defining docker platform from configfile and directly from profile -> this allows defining platform such as linux/amd64 on Mac Silicon systems, avoiding compilation issues related with architecture
  • Rearrange and improve the readability of code.
  • Fix minor bugs while reading profiles
  • Renamed profile options to have docker. prefix to avoid collisions with other runner configurations

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

@perseoGI perseoGI requested a review from davidsanfal December 31, 2024 09:05
@perseoGI perseoGI marked this pull request as ready for review January 2, 2025 10:50
@perseoGI perseoGI changed the title Refactor docker runner, updated logging Refactor docker runner: new logging system and fixed several bugs Jan 31, 2025
Comment on lines +136 to +145
# Runners
"runner.type": "Type of runner to use. Possible values: 'docker'",
"runner.docker.dockerfile": "Path to the Dockerfile to use in case of building a docker image",
"runner.docker.image": "Image name to download from registry or the name of the built image in case of defining dockerfile path",
"runner.docker.name": "Name of the container to be used (conan-runner-docker by default)",
"runner.docker.cache": "Host's conan cache behavior. Possible values: 'clean' (use empty cache), 'copy' (copy whole cache) or 'shared' (mount chache as shared volume)",
"runner.docker.remove": "(boolean) Remove the container after running the Conan command",
"runner.docker.configfile": "Path to a configuration file with extra parameters (https://containers.dev/implementors/json_reference/#image-specific)",
"runner.docker.build_context": "Docker build context",
"runner.docker.platform": "Docker platform to build the image for, e.g. 'linux/amd64'",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not go here, I know. But right now conan's client does not have any command to display extra information about profiles configuration.
Should we create it?
The same occurs with the SSH runner here: https://github.com/conan-io/conan/pull/17357/files#diff-c91d5fdfb0f1effa668199823027b39224920aebeb9db78f13a19abbe5e50be9R136-R139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants