Skip to content

Commit 1382a4a

Browse files
committed
Dockerized (closes jpillora#12)
1 parent f7604a5 commit 1382a4a

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM alpine
2+
3+
4+
#configure go path
5+
ENV GOPATH /root/go
6+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
7+
8+
#package
9+
ENV PACKAGE github.com/jpillora/chisel
10+
11+
#install go and deps, then package,
12+
#move build binaries out then wipe build tools
13+
RUN apk update && \
14+
apk add git go gzip && \
15+
go get -v $PACKAGE && \
16+
mv $GOPATH/bin/* /usr/local/bin/ && \
17+
rm -rf $GOPATH && \
18+
apk del git go gzip && \
19+
echo "Installed $PACKAGE"
20+
21+
#alternatively, git clone into $GOPATH/src,
22+
#then go get -u $PACKAGE to update deps
23+
24+
#run package
25+
ENTRYPOINT ["chisel"]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ Chisel is a fast TCP tunnel, transported over HTTP. Single executable including
1010

1111
See [the latest release](https://github.com/jpillora/chisel/releases/latest)
1212

13+
**Docker**
14+
15+
```sh
16+
docker run --rm -it jpillora/chisel --help
17+
```
18+
1319
**Source**
1420

1521
``` sh
@@ -264,6 +270,7 @@ See more [test/](test/)
264270
* Expose a stats page for proxy throughput
265271
* Treat client stdin/stdout as a socket
266272
* Allow clients to act as an indirect tunnel endpoint for other clients
273+
* Keep local connections open and buffer between remote retries
267274

268275
#### MIT License
269276

0 commit comments

Comments
 (0)