Rename binary

This commit is contained in:
IamTheFij 2018-08-03 19:22:54 -07:00
parent e032fe6a66
commit 5b5c1ce040
3 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@ -25,6 +25,6 @@ _testmain.go
*.prof *.prof
# Output # Output
dsched dockron
# deps # deps
vendor/ vendor/

View File

@ -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" ]

View File

@ -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