Skip to content

Commit

Permalink
update generated project files
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jan 1, 2018
1 parent bf85889 commit f6ef745
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,4 @@ Icon
.Trashes

dockfmt
binaries
cross
cross/
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
notifications:
email: true
go:
- 1.7.x
- 1.8.x
- 1.9.x
- tip
Expand Down
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:latest
FROM golang:alpine as builder
MAINTAINER Jessica Frazelle <[email protected]>

ENV PATH /go/bin:/usr/local/go/bin:$PATH
Expand All @@ -11,16 +11,22 @@ COPY . /go/src/github.com/jessfraz/dockfmt

RUN set -x \
&& apk add --no-cache --virtual .build-deps \
go \
git \
gcc \
libc-dev \
libgcc \
make \
&& cd /go/src/github.com/jessfraz/dockfmt \
&& go build -o /usr/bin/dockfmt . \
&& make static \
&& mv dockfmt /usr/bin/dockfmt \
&& apk del .build-deps \
&& rm -rf /go \
&& echo "Build complete."

FROM scratch

COPY --from=builder /usr/bin/dockfmt /usr/bin/dockfmt
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs

ENTRYPOINT [ "dockfmt" ]
CMD [ "--help" ]
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Jess Frazelle
Copyright (c) 2018 Jessica Frazelle

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ staticcheck: ## Verifies `staticcheck` passes
.PHONY: install
install: ## Installs the executable or package
@echo "+ $@"
@go install .
go install -a -tags "$(BUILDTAGS)" ${GO_LDFLAGS} .

define buildpretty
mkdir -p $(BUILDDIR)/$(1)/$(2);
Expand Down Expand Up @@ -103,7 +103,7 @@ release: *.go VERSION ## Builds the cross-compiled binaries, naming them in such

.PHONY: bump-version
BUMP := patch
bump-version: ## Bump the version in the version file. Set KIND to [ patch | major | minor ]
bump-version: ## Bump the version in the version file. Set BUMP to [ patch | major | minor ]
@go get -u github.com/jessfraz/junk/sembump # update sembump tool
$(eval NEW_VERSION = $(shell sembump --kind $(BUMP) $(VERSION)))
@echo "Bumping VERSION from $(VERSION) to $(NEW_VERSION)"
Expand Down

0 comments on commit f6ef745

Please sign in to comment.