File tree 3 files changed +17
-12
lines changed
3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change
1
+ INSTALL_DIR =$(shell go env GOPATH) /bin
2
+
1
3
bin/coder :
2
4
mkdir -p bin
3
5
go build -o bin/coder cmd/coder/main.go
@@ -51,6 +53,12 @@ fmt: fmt/prettier fmt/sql
51
53
gen : database/generate peerbroker/proto provisionersdk/proto provisionerd/proto
52
54
.PHONY : gen
53
55
56
+ install :
57
+ @echo " --- Copying from bin to $( INSTALL_DIR) "
58
+ cp -r ./bin $(INSTALL_DIR )
59
+ @echo " -- CLI available at $( INSTALL_DIR) /coder"
60
+ .PHONY : install
61
+
54
62
peerbroker/proto : peerbroker/proto/peerbroker.proto
55
63
protoc \
56
64
--go_out=. \
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ This repository contains source code for Coder V2. Additional documentation:
15
15
16
16
## Development
17
17
18
+ ### Pre-requisites
19
+
20
+ - ` git ` installed
21
+ - ` node ` and ` yarn ` installed
22
+ - ` go ` version 1.17, with the ` GOPATH ` environment variable set
23
+
18
24
### Cloning
19
25
20
26
- ` git clone https://github.com/coder/coder `
@@ -23,18 +29,16 @@ This repository contains source code for Coder V2. Additional documentation:
23
29
### Building
24
30
25
31
- ` make build `
32
+ - ` make install `
33
+
34
+ The ` coder ` CLI binary will now be available at ` $GOPATH/bin/coder `
26
35
27
36
### Development
28
37
29
38
- ` ./develop.sh `
30
39
31
40
The ` develop.sh ` script runs the server locally on port ` 3000 ` , and runs a hot-reload server for front-end code on ` 8080 ` .
32
41
33
- ### CLI
34
-
35
- - ` ./install.sh ` will ` go install ` the ` coder ` CLI
36
- - ` coder --help `
37
-
38
42
## Front-End Plan
39
43
40
44
For the front-end team, we're planning on 2 phases to the 'v2' work:
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments