Rename binary
This commit is contained in:
parent
e032fe6a66
commit
5b5c1ce040
2
.gitignore
vendored
2
.gitignore
vendored
@ -25,6 +25,6 @@ _testmain.go
|
|||||||
*.prof
|
*.prof
|
||||||
|
|
||||||
# Output
|
# Output
|
||||||
dsched
|
dockron
|
||||||
# deps
|
# deps
|
||||||
vendor/
|
vendor/
|
||||||
|
@ -7,10 +7,10 @@ COPY ./Gopkg.* /go/src/app/
|
|||||||
RUN dep ensure --vendor-only
|
RUN dep ensure --vendor-only
|
||||||
|
|
||||||
COPY ./main.go /go/src/app/
|
COPY ./main.go /go/src/app/
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o dsched .
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o dockron .
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
COPY --from=builder /go/src/app/dsched .
|
COPY --from=builder /go/src/app/dockron .
|
||||||
|
|
||||||
CMD [ "./dsched" ]
|
CMD [ "./dockron" ]
|
||||||
|
10
Makefile
10
Makefile
@ -1,4 +1,4 @@
|
|||||||
DOCKER_TAG ?= dsched-dev
|
DOCKER_TAG ?= dockron-dev
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: build
|
default: build
|
||||||
@ -13,17 +13,17 @@ run: vendor
|
|||||||
go run *.go
|
go run *.go
|
||||||
|
|
||||||
# Output target
|
# Output target
|
||||||
dsched: vendor
|
dockron: vendor
|
||||||
go build -o dsched
|
go build -o dockron
|
||||||
|
|
||||||
# Alias for building
|
# Alias for building
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: dsched
|
build: dockron
|
||||||
|
|
||||||
# Cleans all build artifacts
|
# Cleans all build artifacts
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm dsched
|
rm dockron
|
||||||
|
|
||||||
# Cleans vendor directory
|
# Cleans vendor directory
|
||||||
.PHONY: clean-vendor
|
.PHONY: clean-vendor
|
||||||
|
Loading…
Reference in New Issue
Block a user