mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-06-23 22:02:25 +00:00
remove -O option, use output extension instead
add run command to execute vm in qemu or virtualbox Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
5
Makefile
5
Makefile
@ -29,7 +29,8 @@ docker-push:
|
||||
@docker image push -a $(DOCKER_IMAGE)
|
||||
|
||||
docker-build:
|
||||
@docker image build -t $(DOCKER_IMAGE):$(VERSION) -t $(DOCKER_IMAGE):latest .
|
||||
@docker image build -t $(DOCKER_IMAGE):$(VERSION) .
|
||||
@echo $(VERSION)|grep -q '-' || docker image tag $(DOCKER_IMAGE):latest $(DOCKER_IMAGE):$(VERSION)
|
||||
|
||||
docker-run:
|
||||
@docker run --rm -i -t \
|
||||
@ -40,4 +41,4 @@ docker-run:
|
||||
$(DOCKER_IMAGE) bash
|
||||
|
||||
build:
|
||||
@go build -o d2vm -ldflags "-s -w -X '$(MODULE).Version=$(VERSION)' -X '$(MODULE).BuildDate=$(shell date)'" ./cmd/d2vm
|
||||
@go build -o d2vm -ldflags "-s -w -X '$(MODULE).Image=$(DOCKER_IMAGE)' -X '$(MODULE).Version=$(VERSION)' -X '$(MODULE).BuildDate=$(shell date)'" ./cmd/d2vm
|
||||
|
Reference in New Issue
Block a user