Skip to content

Reduce the size of the Docker image #63

@pvelasco

Description

@pvelasco

Hi,

The size of the Docker image pulled from Docker hub is huge, since it contains FSL, FreeSurfer, etc. However, as far as I can tell, there are many, many files from those distributions that are not used by the pipelines.

By deleting a lot of unused files and staging the building of the Docker image, I have managed to reduce the image size from 26.9 GB to 9.1 GB. A smaller Docker image not only means that you save disk space, but it also means a faster launching of a new container.

I have tested it on some datasets, but it could be (although I think it is unlikely) that running it on other datasets, because their peculiarities, will fail because of the files I removed from the Docker image.

So my questions are:

  1. Would you be interested in reducing the image size
  2. If so, do you have a test dataset to check my image, or could you check it against your test dataset?
    You can pull my image from DockerHub:
    docker pull cbinyu/bids_hcppipelines:latest
    After running the tests I could start a pull request incorporating my changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions