commit
9f36775fc5
23
Makefile.arm64
Normal file
23
Makefile.arm64
Normal file
@ -0,0 +1,23 @@
|
||||
BINARY ?= containerd-driver
|
||||
ifndef $(GOLANG)
|
||||
GOLANG=$(shell which go)
|
||||
export GOLANG
|
||||
endif
|
||||
|
||||
export GOARCH=arm64
|
||||
export GO111MODULE=on
|
||||
export GOOS=linux
|
||||
|
||||
default: build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(BINARY)
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
$(GOLANG) build -o $(BINARY) .
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
./tests/run_tests.sh
|
@ -41,6 +41,12 @@ $ cd nomad-driver-containerd
|
||||
$ make build (This will build your containerd-driver binary)
|
||||
```
|
||||
|
||||
If you want to compile for `arm64`, you can run:
|
||||
|
||||
```
|
||||
make -f Makefile.arm64
|
||||
```
|
||||
|
||||
## Screencast
|
||||
[](https://asciinema.org/a/348173)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user