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

Fix: Fix #199

Merged
merged 1 commit into from
May 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<p align=center>
<a href="https://discord.gg/KqswhpVgdU"><img alt="discord invitation link" src="https://img.shields.io/discord/974584200327991326?label=discord&style=social"></a>
<a href="https://github.com/tensorchord/envd/actions/workflows/CI.yml"><img alt="continuous integration" src="https://github.com/tensorchord/envd/actions/workflows/CI.yml/badge.svg"></a>
<a href="https://trackgit.com"><img src="https://us-central1-trackgit-analytics.cloudfunctions.net/token/ping/l3ldvdaswvnjpty9u7l3" alt="trackgit-views" /></a>
</p>

envd is a development environment management tool for data scientists.
Expand All @@ -28,9 +29,7 @@ envd is a development environment management tool for data scientists.

### From binary

```bash
sudo /bin/sh -c 'wget https://github.com/tensorchord/envd/releases/download/0.0.1-alpha.5/envd_0.0.1-alpha.5_Linux_x86_64 -O /usr/local/bin/envd && chmod +x /usr/local/bin/envd && /usr/local/bin/envd bootstrap'
```
TODO

### From source code

Expand Down Expand Up @@ -60,9 +59,12 @@ shell("zsh")
jupyter(password="", port=8888)
```

Then you can run `envd up` and open jupyter notebook at [`http://localhost:8888`](http://localhost:8888), or open vscode remote to attach to the container.
Then you can run `envd up` to create the development environment.

TODO: illustrate that the cache will be persistent.

```
$ envd up
[+] ⌚ parse build.envd and download/cache dependencies 0.0s ✅ (finished)
=> 💽 (cached) download oh-my-zsh 0.0s
=> 💽 (cached) download ms-python.python 0.0s
Expand All @@ -82,13 +84,24 @@ Then you can run `envd up` and open jupyter notebook at [`http://localhost:8888`
=> 💽 (cached) install oh-my-zsh 0.0s
...
# You are in the docker container for dev
envd >
(envd 🐳) ➜ mnist-dev git:(master) python3 ./main.py
...
```

Jupyter notebook service and sshd server are running inside the container. You can use jupyter or vscode remote-ssh extension to develop AI/ML models.

```
$ envd ls
NAME JUPYTER SSH TARGET GPU STATUS CONTAINER ID
mnist http://localhost:8888 mnist.envd true running 253f656b8c40
```

## Features

### Configure mirrors

envd supports PyPI mirror and apt source configuration. You can configure them in `build.env` or `$HOME/.config/envd/config.envd` to set up in all environments.

```text
cat ~/.config/envd/config.envd
ubuntu_apt(source="""
Expand All @@ -109,8 +122,6 @@ vscode(plugins = [
])
```

envd configures Ubuntu APT source, PyPI mirror, and others in the development environment.

## Join Us

envd is backed by [TensorChord](https://github.com/tensorchord) and licensed under Apache-2.0. We are actively hiring engineers to build developer tools for machine learning practitioners in open source.
Expand Down