docs, docker: Update cli version and add publish command
This commit is contained in:
parent
430e10cb6a
commit
e7f6d637f4
|
@ -13,7 +13,7 @@ SOLANA_CLI=v1.6.3
|
||||||
IMG_ORG ?= projectserum
|
IMG_ORG ?= projectserum
|
||||||
IMG_VER ?= $(ANCHOR_CLI)
|
IMG_VER ?= $(ANCHOR_CLI)
|
||||||
|
|
||||||
.PHONY: build build-push build-shell
|
.PHONY: build build-push build-shell publish
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
@ -24,9 +24,11 @@ build: build/Dockerfile
|
||||||
$@ -t $(IMG_ORG)/$@:$(IMG_VER)
|
$@ -t $(IMG_ORG)/$@:$(IMG_VER)
|
||||||
|
|
||||||
build-push:
|
build-push:
|
||||||
@docker push $(IMG_ORG)/anchorbuild:$(IMG_VER)
|
@docker push $(IMG_ORG)/build:$(IMG_VER)
|
||||||
|
|
||||||
build-shell:
|
build-shell:
|
||||||
@docker run -ti --rm --net=host \
|
@docker run -ti --rm --net=host \
|
||||||
-v $(WORKDIR)/..:/workdir \
|
-v $(WORKDIR)/..:/workdir \
|
||||||
$(IMG_ORG)/build:$(IMG_VER) bash
|
$(IMG_ORG)/build:$(IMG_VER) bash
|
||||||
|
|
||||||
|
publish: build build-push
|
||||||
|
|
|
@ -34,7 +34,7 @@ npm install -g mocha
|
||||||
For now, we can use Cargo to install the CLI.
|
For now, we can use Cargo to install the CLI.
|
||||||
|
|
||||||
```bash
|
```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,
|
On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,
|
||||||
|
|
Loading…
Reference in New Issue