Skip to content

Commit

Permalink
Support docker-get
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreben committed Feb 18, 2018
1 parent d688ac3 commit 7e2b568
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*
!binaries/linux_x86_64/tj
!binaries/linux_x86_64/tj
!cmd
!Makefile
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM golang:1.9.4-alpine3.7
RUN apk add --no-cache make
WORKDIR /go/src/github.com/sgreben/tj/
COPY . .
RUN make binaries/linux_x86_64/tj

FROM scratch
COPY binaries/linux_x86_64/tj /tj
COPY --from=0 /go/src/github.com/sgreben/tj/binaries/linux_x86_64/tj /tj
ENTRYPOINT [ "/tj" ]
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 6.0.0
VERSION = 6.0.1

PACKAGES := $(shell go list -f {{.Dir}} ./...)
GOFILES := $(addsuffix /*.go,$(PACKAGES))
Expand All @@ -8,6 +8,7 @@ GOFILES := $(wildcard $(GOFILES))

# go get -u github.com/github/hub
release: zip
git push
hub release delete $(VERSION) || true
hub release create $(VERSION) -m "$(VERSION)" -a release/tj_$(VERSION)_osx_x86_64.zip -a release/tj_$(VERSION)_windows_x86_64.zip -a release/tj_$(VERSION)_linux_x86_64.zip

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Also available as a [docker image](https://quay.io/repository/sergey_grebenshchi
docker pull quay.io/sergey_grebenshchikov/tj
```

Or using [docker-get](https://github.com/32b/docker-get):

```bash
docker-get https://github.com/sgreben/tj
```

## Use it

`tj` reads from stdin and writes to stdout.
Expand Down

0 comments on commit 7e2b568

Please sign in to comment.