https://github.com/josepsampe/lithops-codelab
Code-server + Jupyter Lab for Lithops
https://github.com/josepsampe/lithops-codelab
Last synced: over 1 year ago
JSON representation
Code-server + Jupyter Lab for Lithops
- Host: GitHub
- URL: https://github.com/josepsampe/lithops-codelab
- Owner: JosepSampe
- License: apache-2.0
- Created: 2021-03-29T11:03:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-07T10:04:28.000Z (over 5 years ago)
- Last Synced: 2025-02-05T14:42:28.492Z (over 1 year ago)
- Language: Python
- Size: 40 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lithops CodeLab
Lithops CodeLab is a containerized development environment that integrates VS Code (code-server) and JupyterLab in the same docker container.
## Configuration
For running the Lithops CodeLab container, you need to configure some environment variables before running the container.
```
CODELAB_PASSWORD=lithops
CODELAB_S3_ACCESS_KEY_ID=<>
CODELAB_S3_SECRET_ACCESS_KEY=<>
CODELAB_S3_ENDPOINT=<>
CODELAB_S3_BUCKET=<>
LITHOPS_CONFIG_FILE=/home/jovyan/workspace/.lithops_config
```
Currently, the CODELAB_PASSWORD variable must be specified in plain text.
## Initialization
Once configured, you can start the container with:
```
docker run --name lithops-codelab -d --rm -p 8770:8080 --env-file=config.env jsampe/lithops-codelab
```
Note that Lithops CodeLab entry point is listening at port 8080, so you have to map an external node port to this port.
For debugging purposes, start the container with:
```
docker run -it --rm -p 8770:8080 --env-file=config.env jsampe/lithops-codelab /bin/bash
```
For terminating the container, you can execute:
```
docker rm -f lithops-codelab
```