Skip to content

Commit

Permalink
Dockerized (closes #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora committed Mar 25, 2016
1 parent f7604a5 commit 1382a4a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM alpine
MAINTAINER dev@jpillora.com

#configure go path
ENV GOPATH /root/go
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin

#package
ENV PACKAGE github.com/jpillora/chisel

#install go and deps, then package,
#move build binaries out then wipe build tools
RUN apk update && \
apk add git go gzip && \
go get -v $PACKAGE && \
mv $GOPATH/bin/* /usr/local/bin/ && \
rm -rf $GOPATH && \
apk del git go gzip && \
echo "Installed $PACKAGE"

#alternatively, git clone into $GOPATH/src,
#then go get -u $PACKAGE to update deps

#run package
ENTRYPOINT ["chisel"]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Chisel is a fast TCP tunnel, transported over HTTP. Single executable including

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

**Docker**

```sh
docker run --rm -it jpillora/chisel --help
```

**Source**

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

#### MIT License

Expand Down

0 comments on commit 1382a4a

Please sign in to comment.