-
Notifications
You must be signed in to change notification settings - Fork 97
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
Problem building image from BIDS/example #295
Comments
hi @mathdugre - thank you for the report. minimizing containers is still a finicky process. i'm a bit backed up at the moment with other tasks, but i will look into this soon. thanks for the details you provided. before i can get to this, can you please answer these questions?
thanks. one note: the lines
are not necessary. you can simply use the |
Hi @kaczmarj - thank you for your help. Using the steps you described above an image with the name "reprounzip_image_wh4z5aenyn" and I couldn't find bet in When executing
Thank you for the note on |
@mathdugre i got a chance to look into this. i think the tar errors are benign -- they've come up on the reprozip github issues but don't seem to cause problems. looks like the docker run --rm -it reprounzip_image_yzrjp25ry9:latest /busybox ash
/busybox --install
export PATH="/usr/lib/fsl/5.0:$PATH"
export LD_LIBRARY_PATH="/usr/lib/fsl/5.0:$LD_LIBRARY_PATH"
bet --help i wrote the so here is what i did with i pushed some updates so please re-install with
you can write a Dockerfile to set these things up for you. the minification would be an intermediate process. FROM bids-example-minified
ENV PATH=/usr/lib/fsl/5.0:$PATH \
LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH
ENTRYPOINT ["python3", "/run.py"] this minified image is 510 MB, whereas the original |
Hi @kaczmarj, sorry for the long delay. Unfortunately, this doesn't seem to work. While the This is the error message:
It looks like the symlinks are broken after using |
Hi @kaczmarj, I figured out my issue. When I copied the environment variable in the minified container I was not exporting them. Now everything works, thank you :) |
excellent! thanks for the followup, and sorry the container minification is tricky. it will get better over time... do you mind posting the commands you used for the minification? that will help future readers. |
To obtain the minified container image I followed the below steps:
Create a Docker file as follow:
Execute the minimized container:
|
thank you @mathdugre - i will close this issue now. please re-open or open a new issue if you experience problems in the future or for any questions. |
I am trying to minify the size of BIDS/example however I am running into some errors.
I used the bids app example with the corr/IPCAS_4 (BIDS) dataset.
Normal MWE
However when using reprounzip I have this error:
I tried to launch the image interactively afterwards but the tool remove file to much (e.g. bahs was gone)
ndminify MWE
I then tried a modified (and less aggressive version of the tool) #258.
When using this version starting from the previous
bids-example
container I get:When using this version of the tool, I get errors due to
bet
not being installed in the final image.The text was updated successfully, but these errors were encountered: