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

Provide automated miniforge docker images #20

Closed
yuvipanda opened this issue Mar 4, 2020 · 13 comments
Closed

Provide automated miniforge docker images #20

yuvipanda opened this issue Mar 4, 2020 · 13 comments

Comments

@yuvipanda
Copy link
Contributor

yuvipanda commented Mar 4, 2020

First, love this project. I often end up installing miniconda, and then immediately creating a new env with conda-forge. Happy to see an alternative.

It would be very helpful if we can provide minimal miniforge docker images, similar to https://hub.docker.com/r/continuumio/miniconda3. Having it set up with conda-forge by default will make many lives easier.

We can keep it similar to the miniconda Dockerfile, although I'd like a few changes:

  1. Pin the base image, rather than using debian:latest. This makes it impossible to know which debian version it is actually on, since that depends on what the latest version was when the image was built.
  2. Use ubuntu as a base image, rather than debian. This is purely based on popularity in the community. However, this isn't a blocker. We can also easily make debian & ubuntu variants if folks need.
  3. Leave $HOME clean, relying only on changes in /etc for profiles. $HOME is often mounted over with users' home directories, and this erases the changes made in $HOME/.bashrc. We could put it in /etc/profile.d instead for better effect.

This should be a completely automated process, and be built whenever a release is tagged. Providing just python3 images is probably good enough for now?

@scopatz
Copy link
Member

scopatz commented Mar 5, 2020

Thanks @yuvipanda! I thought that the https://github.com/conda-forge/docker-images/blob/master/linux-anvil-comp7/Dockerfile is basically this/could be basically this. CC @isuruf @jakirkham

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Mar 5, 2020

Conda is meant to be installed in the home directory. At least so I think.

How do you propose getting aroundthat?

@scopatz
Copy link
Member

scopatz commented Mar 5, 2020

Conda doesn't need to be installed in the home directory. A lot of the docker images install it into /opt

@yuvipanda
Copy link
Contributor Author

yuvipanda commented Mar 5, 2020

@scopatz something like that, but hopefully much more minimal - just tini and conda.

@scopatz
Copy link
Member

scopatz commented Mar 5, 2020

I think we are very open to having something in this realm!

@yuvipanda
Copy link
Contributor Author

@scopatz I have a PR ready at conda-forge/docker-images#129. I actually don't know if that is the right place for it - it might make more sense for it to live in this repo, so we can auto push images on tagging. What do you think?

@scopatz
Copy link
Member

scopatz commented Mar 9, 2020

docker-images is probably the right place. We can always move it here, later if we decide

@jakirkham
Copy link
Member

Anything else to do here or is this resolved with PR ( conda-forge/docker-images#129 )?

@yuvipanda
Copy link
Contributor Author

@jakirkham not sure if it is getting auto tagged and pushed.

@jakirkham
Copy link
Member

Did it get added to .travis.yml?

@jakirkham
Copy link
Member

For context, @yuvipanda, adding a matrix case to .travis.yml should be all that is needed.

@maresb
Copy link
Contributor

maresb commented Sep 9, 2020

As an external observer, it wasn't clear to me at first glance whether or not a Dockerfile exists yet.

Answer: Yes it exists. Here is the Dockerfile. There also seems to be something on DockerHub which seems to be updated too frequently and only tagged with latest.

@isuruf
Copy link
Member

isuruf commented Sep 19, 2020

There's a docker image now

@isuruf isuruf closed this as completed Sep 19, 2020
xhochy pushed a commit to xhochy/miniforge that referenced this issue Feb 4, 2021
A slim miniforge3 image, equivalent to miniconda3 but with some
slightly different choices.

- Use ubuntu LTS as base instead of debian
- Keep $HOME clean, so folks can mount volumes into it

Ref conda-forge#20
xhochy pushed a commit to xhochy/miniforge that referenced this issue Feb 4, 2021
A slim miniforge3 image, equivalent to miniconda3 but with some
slightly different choices.

- Use ubuntu LTS as base instead of debian
- Keep $HOME clean, so folks can mount volumes into it

Ref conda-forge#20
xhochy pushed a commit to conda-forge/miniforge-images that referenced this issue Feb 7, 2021
A slim miniforge3 image, equivalent to miniconda3 but with some
slightly different choices.

- Use ubuntu LTS as base instead of debian
- Keep $HOME clean, so folks can mount volumes into it

Ref conda-forge/miniforge#20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants