-
Notifications
You must be signed in to change notification settings - Fork 46
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
Don't mess with PATH #61
Comments
Hi @maresb . Two of these failing tests disable the entrypoint script and I'm okay with that behavior, as people shouldn't be overriding the entrypoint and expect everything to work. Those two tests are primarily in there to ensure the behavior of the image doesn't change without the developers being aware of the implications. The third test that fails is this one: micromamba-docker/test/run-exec-form.Dockerfile Lines 1 to 6 in 92e4c67
Because that final |
@wholtz, thanks for the detailed explanation! In this third test, in the context of #60, could you add the line ARG MAMBA_DOCKERFILE_ACTIVATE=1 just before the last line? I would expect that to fix this test. At least for me, this behavior is more intuitive: I don't expect anything from the environment to become available until after I have activated it. |
No, adding |
Ahhhhhhhhhh..... I see.
👍 Hmm, that does seem to be a significant flaw in my proposal which I had not realized before. |
I'm happy with PR #60 and I agree with you overall about modifying the |
This is a really good point. I must confess that I don't understand very well the magic that happens when a Conda binary is executed outside of an activated environment. (I know in Linux there's often some clever shebang stuff.) Do you know to what extent it's equivalent to activating before running? I suppose the way I'd fix the test case would be RUN ["/opt/conda/bin/python", "-c", "import os; os.system('touch foobar')"] I'm very glad you like #60, thanks! 😃 |
This looks great!!! Thanks so much @wholtz! |
I'd prefer to get rid of this line which prepends
$MAMBA_ROOT_PREFIX/bin
toPATH
.Here are a few reasons why I think that line is a bad idea:
MAMBA_ROOT_PREFIX
is changed by the user. Then the default is still on the path, but the new value is not.SHELL
orENTRYPOINT
, see Allow activation within Dockerfile via SHELL #60.)Does this make sense? Is there some use case I'm missing?
The text was updated successfully, but these errors were encountered: