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

Path to conda not specified in docker image #1

Open
peaceisbetter opened this issue Oct 13, 2023 · 3 comments
Open

Path to conda not specified in docker image #1

peaceisbetter opened this issue Oct 13, 2023 · 3 comments

Comments

@peaceisbetter
Copy link
Owner

peaceisbetter commented Oct 13, 2023

When running Dockerfile.centos7, the docker image gets to step 5/5 and produces an error which indicates that the path to conda is not valid. This means the path either does not exist or the path is not accessible (I do not have admin privileges on the computer I am running this on).

The docker command:
docker build -t tbillah/fsl-6.0.6-centos7 -f Dockerfile.centos7 .

The error:
=> ERROR [5/5] RUN /root/fsl-5.0.11-centos7/fslpython/bin/conda install -y -n fslpython -c conda-forge deprecation==1.* 0.4s

[5/5] RUN /root/fsl-5.0.11-centos7/fslpython/bin/conda install -y -n fslpython -c conda-forge deprecation==1.*:
0.347 /bin/sh: /root/fsl-5.0.11-centos7/fslpython/bin/conda: No such file or directory

Dockerfile.centos7:32

30 |
31 | # apply patch
32 | >>> RUN $FSLDIR/fslpython/bin/conda install -y -n fslpython -c conda-forge deprecation==1.*
33 |
34 |

ERROR: failed to solve: process "/bin/sh -c $FSLDIR/fslpython/bin/conda install -y -n fslpython -c conda-forge deprecation==1.*" did not complete successfully: exit code: 127

@tashrifbillah
Copy link

No worries. You just had to open it on my GitHub. This is your fork. If you open it here, I won't get notification.

@tashrifbillah
Copy link

I changed the fsl version to 6.0.6, which may be why I am experiencing the issue

You should be correct. As you pointed out, the error is coming from here:

/root/fsl-5.0.11-centos7/fslpython/bin/conda: No such file or directory

That means 6.0.5 moved the conda elsewhere or they came up with a different strategy for building Python packages.

@tashrifbillah
Copy link

On second thought, I think conda is in the right place. You are making mistake with directory name. Is /root/fsl-5.0.11-centos7 still the directory where you installed 6.0.5? Carefully examine this, I think you can figure this out. You are close!

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

No branches or pull requests

2 participants