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

fix: recover --docker-base-image feature #906

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

Yikun
Copy link
Contributor

@Yikun Yikun commented Jul 25, 2023

In the #866 we introduced the --docker-base-image to help user to specify customized build docker image (such as Linux aarch64 build).

But we noticed that it doesn’t work after the #894 , because a local var introduced and the docker-base-image arguments is ignored.

This PR try to recover it, if user specify the --docker-base-image, it will be used directly otherwise use the local var.

Test:

[root@kunpeng bioconda-recipes]# bioconda-utils build --docker --packages bamstats --docker-base-image ghcr.io/yikun/bioconda-utils-build-env-cos7-aarch64

11:50:12 BIOCONDA INFO Considering total of 1 recipes (bamstats).
11:50:12 BIOCONDA INFO Processing 1 recipes (bamstats).
11:50:12 BIOCONDA WARNING Using tag 2.3.4 for docker image, since there is no image for a not yet release version (2.3.4+0.g9a85115.dirty).
11:50:12 BIOCONDA INFO Using docker image ghcr.io/yikun/bioconda-utils-build-env-cos7-aarch64 for building.
// ... ...

In the bioconda#866 we introduced the `--docker-base-image` to help user to specify customized build docker image (such as Linux aarch64 build).

But we noticed that it doesn’t work after the bioconda#894 , because a local var introduced and the `docker-base-image` arguments is ignored:
https://github.com/bioconda/bioconda-utils/blame/9a85115ae306f58c8b4e65e5f92f6cbdb5b68f04/bioconda_utils/cli.py#L468

This PR try to recover it, if user specify the `--docker-base-image`, it will be used directly otherwise use the local var.

Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
@Yikun Yikun changed the title Recover --docker-base-image feature fix: Recover --docker-base-image feature Jul 25, 2023
@Yikun
Copy link
Contributor Author

Yikun commented Jul 25, 2023

cc @johanneskoester @dpryan79

@Yikun Yikun changed the title fix: Recover --docker-base-image feature fix: recover --docker-base-image feature Aug 5, 2023
@Yikun
Copy link
Contributor Author

Yikun commented Aug 5, 2023

All CI passed, ready for review

@johanneskoester johanneskoester merged commit aa08857 into bioconda:master Aug 9, 2023
1 check passed
@Yikun
Copy link
Contributor Author

Yikun commented Aug 9, 2023

@johanneskoester Thanks!

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