Skip to content

Commit 7e2b568

Browse files
committed
Support docker-get
1 parent d688ac3 commit 7e2b568

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*
2-
!binaries/linux_x86_64/tj
2+
!binaries/linux_x86_64/tj
3+
!cmd
4+
!Makefile

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
FROM golang:1.9.4-alpine3.7
2+
RUN apk add --no-cache make
3+
WORKDIR /go/src/github.com/sgreben/tj/
4+
COPY . .
5+
RUN make binaries/linux_x86_64/tj
6+
17
FROM scratch
2-
COPY binaries/linux_x86_64/tj /tj
8+
COPY --from=0 /go/src/github.com/sgreben/tj/binaries/linux_x86_64/tj /tj
39
ENTRYPOINT [ "/tj" ]

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 6.0.0
1+
VERSION = 6.0.1
22

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

99
# go get -u github.com/github/hub
1010
release: zip
11+
git push
1112
hub release delete $(VERSION) || true
1213
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
1314

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Also available as a [docker image](https://quay.io/repository/sergey_grebenshchi
3232
docker pull quay.io/sergey_grebenshchikov/tj
3333
```
3434

35+
Or using [docker-get](https://github.com/32b/docker-get):
36+
37+
```bash
38+
docker-get https://github.com/sgreben/tj
39+
```
40+
3541
## Use it
3642

3743
`tj` reads from stdin and writes to stdout.

0 commit comments

Comments
 (0)