File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 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+
13bin/coder :
24 mkdir -p bin
35 go build -o bin/coder cmd/coder/main.go
@@ -51,6 +53,12 @@ fmt: fmt/prettier fmt/sql
5153gen : database/generate peerbroker/proto provisionersdk/proto provisionerd/proto
5254.PHONY : gen
5355
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+
5462peerbroker/proto : peerbroker/proto/peerbroker.proto
5563 protoc \
5664 --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:
1515
1616## Development
1717
18+ ### Pre-requisites
19+
20+ - ` git ` installed
21+ - ` node ` and ` yarn ` installed
22+ - ` go ` version 1.17, with the ` GOPATH ` environment variable set
23+
1824### Cloning
1925
2026- ` git clone https://github.com/coder/coder `
@@ -23,18 +29,16 @@ This repository contains source code for Coder V2. Additional documentation:
2329### Building
2430
2531- ` make build `
32+ - ` make install `
33+
34+ The ` coder ` CLI binary will now be available at ` $GOPATH/bin/coder `
2635
2736### Development
2837
2938- ` ./develop.sh `
3039
3140The ` develop.sh ` script runs the server locally on port ` 3000 ` , and runs a hot-reload server for front-end code on ` 8080 ` .
3241
33- ### CLI
34-
35- - ` ./install.sh ` will ` go install ` the ` coder ` CLI
36- - ` coder --help `
37-
3842## Front-End Plan
3943
4044For 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