Skip to content

Commit 8068f91

Browse files
authored
chore: Rename project to envd (#135)
* chore: Rename Signed-off-by: Ce Gao <cegao@tensorchord.ai> * fix: rename Signed-off-by: Ce Gao <cegao@tensorchord.ai>
1 parent af02d93 commit 8068f91

61 files changed

Lines changed: 211 additions & 225 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
GOPATH: ${{ github.workspace }}/go
4747
defaults:
4848
run:
49-
working-directory: ${{ env.GOPATH }}/src/github.com/tensorchord/MIDI
49+
working-directory: ${{ env.GOPATH }}/src/github.com/tensorchord/envd
5050
steps:
5151
- name: Check out code
5252
uses: actions/checkout@v2
5353
with:
54-
path: ${{ env.GOPATH }}/src/github.com/tensorchord/MIDI
54+
path: ${{ env.GOPATH }}/src/github.com/tensorchord/envd
5555
- name: Setup Go
5656
uses: actions/setup-go@v2
5757
with:
@@ -75,7 +75,7 @@ jobs:
7575
# uses: shogo82148/actions-goveralls@v1
7676
# with:
7777
# path-to-profile: coverage.out
78-
# working-directory: src/github.com/tensorchord/MIDI
78+
# working-directory: src/github.com/tensorchord/envd
7979
# flag-name: unit-test
8080
# parallel: true
8181
build:
@@ -85,13 +85,13 @@ jobs:
8585
GOPATH: ${{ github.workspace }}/go
8686
defaults:
8787
run:
88-
working-directory: ${{ env.GOPATH }}/src/github.com/tensorchord/MIDI
88+
working-directory: ${{ env.GOPATH }}/src/github.com/tensorchord/envd
8989

9090
steps:
9191
- name: Check out code
9292
uses: actions/checkout@v2
9393
with:
94-
path: ${{ env.GOPATH }}/src/github.com/tensorchord/MIDI
94+
path: ${{ env.GOPATH }}/src/github.com/tensorchord/envd
9595
- name: Setup Go
9696
uses: actions/setup-go@v2
9797
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ go.work
3131
__debug_bin
3232
bin/
3333
debug-bin/
34-
/build.MIDI
34+
/build.envd
3535
.ipynb_checkpoints/
3636
cover.html
3737

.goreleaser.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,39 @@ builds:
88
- CGO_ENABLED=0
99
goos:
1010
- linux
11-
id: midi
12-
main: ./cmd/midi
13-
binary: midi
11+
id: envd
12+
main: ./cmd/envd
13+
binary: envd
1414
ldflags:
1515
- -s -w
16-
- -X github.com/tensorchord/MIDI/pkg/version.Version={{ .Version }}
17-
- -X github.com/tensorchord/MIDI/pkg/version.Revision={{ .Commit }}
16+
- -X github.com/tensorchord/envd/pkg/version.Version={{ .Version }}
17+
- -X github.com/tensorchord/envd/pkg/version.Revision={{ .Commit }}
1818
- env:
1919
- CGO_ENABLED=0
2020
goos:
2121
- linux
22-
id: midi-ssh
23-
main: ./cmd/midi-ssh
24-
binary: midi-ssh
22+
id: envd-ssh
23+
main: ./cmd/envd-ssh
24+
binary: envd-ssh
2525
ldflags:
2626
- -s -w
27-
- -X github.com/tensorchord/MIDI/pkg/version.Version={{ .Version }}
28-
- -X github.com/tensorchord/MIDI/pkg/version.Revision={{ .Commit }}
27+
- -X github.com/tensorchord/envd/pkg/version.Version={{ .Version }}
28+
- -X github.com/tensorchord/envd/pkg/version.Revision={{ .Commit }}
2929
archives:
30-
- id: midi
30+
- id: envd
3131
format: binary
3232
builds:
33-
- midi
33+
- envd
3434
replacements:
3535
darwin: Darwin
3636
linux: Linux
3737
windows: Windows
3838
386: i386
3939
amd64: x86_64
40-
- id: midi-ssh
40+
- id: envd-ssh
4141
format: binary
4242
builds:
43-
- midi-ssh
43+
- envd-ssh
4444
replacements:
4545
darwin: Darwin
4646
linux: Linux
@@ -59,24 +59,24 @@ changelog:
5959
- '^test:'
6060
dockers:
6161
- image_templates:
62-
- "ghcr.io/tensorchord/midi-ssh-from-scratch:{{ .Version }}-amd64"
62+
- "ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-amd64"
6363
use: buildx
64-
dockerfile: .goreleaser/midi-ssh.Dockerfile
64+
dockerfile: .goreleaser/envd-ssh.Dockerfile
6565
ids:
66-
- midi-ssh
66+
- envd-ssh
6767
build_flag_templates:
6868
- "--platform=linux/amd64"
6969
- image_templates:
70-
- "ghcr.io/tensorchord/midi-ssh-from-scratch:{{ .Version }}-arm64v8"
70+
- "ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-arm64v8"
7171
use: buildx
7272
goarch: arm64
7373
ids:
74-
- midi-ssh
75-
dockerfile: .goreleaser/midi-ssh.Dockerfile
74+
- envd-ssh
75+
dockerfile: .goreleaser/envd-ssh.Dockerfile
7676
build_flag_templates:
7777
- "--platform=linux/arm64/v8"
7878
docker_manifests:
79-
- name_template: ghcr.io/tensorchord/midi-ssh-from-scratch:{{ .Version }}
79+
- name_template: ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}
8080
image_templates:
81-
- ghcr.io/tensorchord/midi-ssh-from-scratch:{{ .Version }}-amd64
82-
- ghcr.io/tensorchord/midi-ssh-from-scratch:{{ .Version }}-arm64v8
81+
- ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-amd64
82+
- ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-arm64v8

.goreleaser/envd-ssh.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM scratch
2+
COPY envd-ssh /usr/bin/envd-ssh

.goreleaser/midi-ssh.Dockerfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Please refer to the [CNCF Community Code of Conduct v1.0](https://github.com/cnc
1616
```
1717
go mod tidy
1818
make
19-
./bin/midi bootstrap
20-
./bin/midi --version
19+
./bin/envd bootstrap
20+
./bin/envd --version
2121
```
2222

2323
### Lint

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 MIDI Authors.
1+
# Copyright 2022 envd Authors.
22
#
33
# The old school Makefile, following are required targets. The Makefile is written
44
# to allow building multiple binaries. You are free to add more targets or change
@@ -26,10 +26,10 @@
2626
#
2727

2828
# This repo's root import path (under GOPATH).
29-
ROOT := github.com/tensorchord/MIDI
29+
ROOT := github.com/tensorchord/envd
3030

3131
# Target binaries. You can build multiple binaries for a single project.
32-
TARGETS := midi midi-ssh
32+
TARGETS := envd envd-ssh
3333

3434
# Container image prefix and suffix added to targets.
3535
# The final built images are:
@@ -129,7 +129,7 @@ debug-local:
129129
done
130130

131131
addlicense:
132-
addlicense -c "The MIDI Authors" **/*.go **/**/*.go **/**/**/*.go
132+
addlicense -c "The envd Authors" **/*.go **/**/*.go **/**/**/*.go
133133

134134
test: generate
135135
@go test -race -coverprofile=coverage.out ./...

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# MIDI
1+
# envd
22

33
Development Environment for Data Scientists
44

@@ -21,21 +21,21 @@ Development Environment for Data Scientists
2121
### From binary
2222

2323
```bash
24-
sudo /bin/sh -c 'wget https://github.com/tensorchord/midi/releases/download/0.0.1-alpha.3/midi_0.0.1-alpha.3_Linux_x86_64 -O /usr/local/bin/midi && chmod +x /usr/local/bin/midi && /usr/local/bin/midi bootstrap'
24+
sudo /bin/sh -c 'wget https://github.com/tensorchord/envd/releases/download/0.0.1-alpha.3/envd_0.0.1-alpha.3_Linux_x86_64 -O /usr/local/bin/envd && chmod +x /usr/local/bin/envd && /usr/local/bin/envd bootstrap'
2525
```
2626

2727
### From source code
2828

2929
```bash
30-
git clone https://github.com/tensorchord/midi
30+
git clone https://github.com/tensorchord/envd
3131
go mod tidy
3232
make
33-
./bin/midi --version
33+
./bin/envd --version
3434
```
3535

3636
## Quickstart
3737

38-
Checkout the [examples](./examples/mnist), and configure MIDI with the manifest `build.MIDI`:
38+
Checkout the [examples](./examples/mnist), and configure envd with the manifest `build.envd`:
3939

4040
```python
4141
vscode(plugins=[
@@ -52,7 +52,7 @@ shell("zsh")
5252
jupyter(password="", port=8888)
5353
```
5454

55-
Then you can run `midi up` and open jupyter notebook at [`http://localhost:8888`](http://localhost:8888), or open vscode remote to attach to the container.
55+
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.
5656

5757
```
5858
[+] ⌚ parse build.MIDI and download/cache dependencies 0.0s ✅ (finished)
@@ -77,7 +77,7 @@ MIDI >
7777
### Configure mirrors
7878

7979
```
80-
cat ~/.config/midi/config.MIDI
80+
cat ~/.config/envd/config.envd
8181
ubuntu_apt(source="""
8282
deb https://mirror.sjtu.edu.cn/ubuntu focal main restricted
8383
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates main restricted

build.MIDI

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 The MIDI Authors
1+
// Copyright 2022 The envd Authors
22
// Copyright 2022 The okteto remote Authors
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,13 +26,13 @@ import (
2626
"github.com/sirupsen/logrus"
2727
cli "github.com/urfave/cli/v2"
2828

29-
"github.com/tensorchord/MIDI/pkg/remote/sshd"
30-
"github.com/tensorchord/MIDI/pkg/version"
29+
"github.com/tensorchord/envd/pkg/remote/sshd"
30+
"github.com/tensorchord/envd/pkg/version"
3131
)
3232

3333
const (
34-
authorizedKeysPath = "/var/midi/remote/authorized_keys"
35-
envPort = "MIDI_SSH_PORT"
34+
authorizedKeysPath = "/var/envd/remote/authorized_keys"
35+
envPort = "envd_SSH_PORT"
3636
flagDebug = "debug"
3737
flagAuthKey = "authorized-keys"
3838
flagNoAuth = "no-auth"
@@ -44,8 +44,8 @@ func main() {
4444
}
4545

4646
app := cli.NewApp()
47-
app.Name = "midi-ssh"
48-
app.Usage = "ssh server for MIDI"
47+
app.Name = "envd-ssh"
48+
app.Usage = "ssh server for envd"
4949
app.Version = version.Version
5050
app.Flags = []cli.Flag{
5151
&cli.BoolFlag{

0 commit comments

Comments
 (0)