Docker-machine-driver-xenserver derivado do docker-machine-driver-xcp, apenas para compatibilidade de clusters Rancher criados com o driver antigo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
1.2 KiB

#This file was modified from the original work, https://github.com/xenserver/docker-machine-driver-xenserver
.PHONY: build
build:
GO111MODULE=on go get ./...
go build ./...
.PHONY: install
GO111MODULE=on go get ./...
go install ./...
.PHONY: clean
clean:
rm -f docker-machine-driver-xenserver \
docker-machine-driver-xenserver_darwin-386.tar.gz \
docker-machine-driver-xenserver_darwin-amd64.tar.gz \
docker-machine-driver-xenserver_linux-386.tar.gz \
docker-machine-driver-xenserver_linux-amd64.tar.gz \
docker-machine-driver-xenserver_windows-386.zip \
docker-machine-driver-xenserver_windows-amd64.zip
.PHONY: release
release:
GO111MODULE=on go get ./...
# Unix
for arch in 386 amd64 ; do \
for os in darwin linux ; do \
GOOS=$$os GOARCH=$$arch go build -o docker-machine-driver-xenserver; \
tar -cvzf docker-machine-driver-xenserver_$$os-$$arch.tar.gz docker-machine-driver-xenserver; \
rm -f docker-machine-driver-xenserver; \
done \
done
# Windows
for arch in 386 amd64 ; do \
GOOS=windows GOARCH=$$arch go build -o docker-machine-driver-xenserver.exe; \
zip docker-machine-driver-xenserver_windows-$$arch.zip docker-machine-driver-xenserver.exe; \
rm -f docker-machine-driver-xenserver; \
done