docs, docker: Update cli version and add publish command

This commit is contained in:
armaniferrante 2021-04-06 16:15:29 -07:00
parent 430e10cb6a
commit e7f6d637f4
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
2 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@ SOLANA_CLI=v1.6.3
IMG_ORG ?= projectserum
IMG_VER ?= $(ANCHOR_CLI)
.PHONY: build build-push build-shell
.PHONY: build build-push build-shell publish
default:
@ -24,9 +24,11 @@ build: build/Dockerfile
$@ -t $(IMG_ORG)/$@:$(IMG_VER)
build-push:
@docker push $(IMG_ORG)/anchorbuild:$(IMG_VER)
@docker push $(IMG_ORG)/build:$(IMG_VER)
build-shell:
@docker run -ti --rm --net=host \
-v $(WORKDIR)/..:/workdir \
$(IMG_ORG)/build:$(IMG_VER) bash
publish: build build-push

View File

@ -34,7 +34,7 @@ npm install -g mocha
For now, we can use Cargo to install the CLI.
```bash
cargo install --git https://github.com/project-serum/anchor --tag v0.4.0 anchor-cli --locked
cargo install --git https://github.com/project-serum/anchor --tag v0.4.1 anchor-cli --locked
```
On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,