OceanParcels / Parcels

Main code for Parcels (Probably A Really Computationally Efficient Lagrangian Simulator)
https://www.oceanparcels.org
MIT License
289 stars 128 forks source link

Binder tag broken? #1669

Closed erikvansebille closed 5 days ago

erikvansebille commented 3 weeks ago

Parcels version

v3.0.4

Description

When clicking the launch binder tag on README.md, the binder launches but fails with

Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... bash: line 1:     8 Killed                  ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file ".binder/environment.yml"
time: 53.349
 ---> Removed intermediate container d44d69b86d02
The command '/bin/sh -c TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file ".binder/environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${NB_PYTHON_PREFIX} '' returned a non-zero code: 137Error in event stream: Error

Seems to be an issue with the .binder/environment.yml file?

Code sample

# Paste your code within this block
# Paste your error message within this block
VeckoTheGecko commented 6 days ago

I don't think this is an error with our code. I built locally using repo2docker with no issues. I think its a limit that mybinder.org puts on containers in terms of resource consumption (which explains the 137 error code, which some posts mention is a memory error code).

We aren't the only ones https://github.com/jupyterlab/jupyterlab/issues/16344 .

VeckoTheGecko commented 6 days ago

Made a post

VeckoTheGecko commented 6 days ago

Perhaps we can cache the environment by building using https://github.com/jupyterhub/repo2docker-action which then uploads it to DockerHub (or another image hosting service). Would require additional config.