neurodocker icon indicating copy to clipboard operation
neurodocker copied to clipboard

Make --no-install-recommends optional

Open yarikoptic opened this issue 2 years ago • 3 comments

My use case is to recreate elderly python2 environment with python-mvpa2 via apt on neurodebian:nd100. That package for "full featured" operation Recommends a good number of packages. I want to have them installed, but neurodocker hardcodes addition of --no-install-recommends into apt invocation. Even adding --install-recommends in the list of packages (cheating) causing the line to be --no-install-recommends --install-recommends ... unfortunately does not provide a workaround :-/

yarikoptic avatar Jul 21 '22 15:07 yarikoptic

i'm not sure if this is documented anywhere, but you can use --install opts="" wget to remove --no-install-recommends.

docker run --rm -it kaczmarj/neurodocker:0.8.0 generate docker -p apt -b neurodebian:nd100 --install opts="" wget

does that work for you?

if this isn't documented, we should include it somewhere.

also i'm references the kaczmarj/neurodocker:0.8.0 image because the repronim/neurodocker space doesn't have 0.8.0... we're working on fixing access rights.

kaczmarj avatar Jul 21 '22 21:07 kaczmarj

following up on this. does --install opts="" satisfy your needs @yarikoptic ?

kaczmarj avatar Aug 04 '22 16:08 kaczmarj

oh, and it needs 0.8.0 (0.7.0 isn't good enough)! seems to work, but requires invocation change (--base-image vs --base) and output is different (https://github.com/ReproNim/containers/commit/30b39e96f30e52f4dc598c038918240d69b89c11) so will analyze in detail later. Feel free to close as is or close with adding some docs about this magical feature ;-)

yarikoptic avatar Aug 04 '22 21:08 yarikoptic

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 29 '23 02:08 github-actions[bot]

image this is documented - so closing this issue

stebo85 avatar Sep 17 '23 23:09 stebo85