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

[DH-301] use this as the default image config, swiped from nature hub #11

Merged
merged 10 commits into from
Oct 15, 2024

Conversation

shaneknapp
Copy link
Contributor

Copy link
Contributor

@felder felder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The list of default packages is not necessarily complete, we should think about if we want/need anything else in there. I also suggested items to remove from environment.yaml, also shouldn't it be named environment.yml? not environment.yaml?

environment.yaml Outdated Show resolved Hide resolved
apt.txt Outdated Show resolved Hide resolved
@felder
Copy link
Contributor

felder commented Oct 4, 2024

@shaneknapp this PR is missing some of the required packages that were listed in the other one.

Can you make environment.yaml look like this?

name: default-datahub-user-image
# This is the standard conda configuration file. Use this file to list
# the conda packages that you need installed in your environment.
channels:
- conda-forge

dependencies:

# Items required for basic level functionality
- gh-scoped-creds==4.1
- git==2.46.0
- jupyter-resource-usage==1.1.0
- jupyter_server==2.14.2
- jupyterhub==4.1.6
- jupyterlab==4.2.5
- jupyterlab-git==0.50.1
- jupytext==1.16.4
- nbgitpuller==1.2.1
- notebook==7.2.2
- python==3.11.*
 
# pip installed packages, conda is prefered
- pip==24.2
- pip:
  - nbconvert[webpdf]==7.16.4

@shaneknapp
Copy link
Contributor Author

unsure why it's not finding playwright?

Step 45/52 : RUN ./postBuild
 ---> Running in 19fd99c69af7
./postBuild: line 6: playwright: command not found

@felder
Copy link
Contributor

felder commented Oct 4, 2024

@shaneknapp If I check this out and build locally, the issue seems to be environment.yaml vs environment.yml, immediately visible is python 3.10:

(datahub-venv) Jonathans-2021-MacBook-Pro:hub-user-image-template felder$ jupyter-repo2docker --version
2024.07.0
(datahub-venv) Jonathans-2021-MacBook-Pro:hub-user-image-template felder$ git branch
  main
* update-default-image-config
(datahub-venv) Jonathans-2021-MacBook-Pro:hub-user-image-template felder$ jupyter-repo2docker --user-id=1000 --user-name=jovyan --Repo2Docker.platform=linux/amd64 --target-repo-dir=/home/jovyan/.cache .
Picked Local content provider.
Using local repo ..
Python version unspecified, using current default Python version 3.10. This will change in the future.Building conda environment for python=3.10
Using PythonBuildPack builder
^C

(datahub-venv) Jonathans-2021-MacBook-Pro:hub-user-image-template felder$ mv environment.yaml environment.yml
(datahub-venv) Jonathans-2021-MacBook-Pro:hub-user-image-template felder$ jupyter-repo2docker --user-id=1000 --user-name=jovyan --Repo2Docker.platform=linux/amd64 --target-repo-dir=/home/jovyan/.cache .
Picked Local content provider.
Using local repo ..
Building conda environment for python=3.11
Using CondaBuildPack builder
...

@shaneknapp
Copy link
Contributor Author

shaneknapp commented Oct 4, 2024 via email

@felder
Copy link
Contributor

felder commented Oct 4, 2024

@shaneknapp I think we should standardize on extensions for the yaml files, I really don't think we should have some of them named .yaml and others .yml so if you want .yaml maybe file an upstream bug report?

@shaneknapp
Copy link
Contributor Author

shaneknapp commented Oct 4, 2024

@shaneknapp I think we should standardize on extensions for the yaml files, I really don't think we should have some of them named .yaml and others .yml

according to yaml.org (https://yaml.org/faq.html):

Is there an official extension for YAML files?

Please use ".yaml" when possible.

so this is definitely a bug in repo2docker. github actions, for instance, happily works w/either extension. i'll file a bug either this weekend or early next week.

tbh, i would much prefer to use .yaml over .yml...

@shaneknapp
Copy link
Contributor Author

issue filed: jupyterhub/repo2docker#1373

@shaneknapp
Copy link
Contributor Author

@felder does this look good to merge?

@shaneknapp shaneknapp changed the title use this as the default image config, swiped from nature hub [DH-301] use this as the default image config, swiped from nature hub Oct 14, 2024
the latest git in conda-forge was recently bumped from 2.46.0 to 2.47.0, reflecting that here.
@felder
Copy link
Contributor

felder commented Oct 15, 2024

@shaneknapp yeah I guess so. I just bumped git and I suppose if anything is missing it's a simple matter to update it again.

@felder felder merged commit ffe820a into main Oct 15, 2024
@felder felder deleted the update-default-image-config branch October 15, 2024 17:01
@shaneknapp
Copy link
Contributor Author

@shaneknapp yeah I guess so. I just bumped git and I suppose if anything is missing it's a simple matter to update it again.

thanks @felder !

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

Successfully merging this pull request may close these issues.

2 participants