Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manics/binderlite-builder
Preliminary proof-of-concept of building JupyterLite distributions for Binder repositories
https://github.com/manics/binderlite-builder
Last synced: 3 months ago
JSON representation
Preliminary proof-of-concept of building JupyterLite distributions for Binder repositories
- Host: GitHub
- URL: https://github.com/manics/binderlite-builder
- Owner: manics
- Created: 2022-07-02T20:13:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-02T20:49:59.000Z (over 2 years ago)
- Last Synced: 2024-04-14T03:19:55.347Z (9 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo: BinderLite
[![Build](https://github.com/manics/binderlite-builder/actions/workflows/build.yml/badge.svg)](https://github.com/manics/binderlite-builder/actions/workflows/build.yml)
Preliminary proof-of-concept of building JupyterLite distributions for Binder repositories.
This only works with very simple `requirements.txt` files.
## Build container
```
docker build -t binderlite .
```## Build repository and serve on port 8000
```
docker run --rm -p 8000:8000 binderlite \
./build.py https://gist.github.com/manics/626496ed5c9b93e694ac006181e331ec --serve
```## Build repository in a local mounted `build` directory
```
docker run --rm -v $PWD/build:/home/mambauser/build binderlite \
./build.py https://gist.github.com/manics/626496ed5c9b93e694ac006181e331ec
```Serve locally (port 8000):
```
python -m http.server -d build/jl
```