Conversation
osiloke
commented
Oct 24, 2017
- Adds customizable docker image for running tunneld
* Adds customizable docker image for running tunneld
|
Thanks, I'll review it next week as I'm on a conference. |
|
Hi @osiloke, I've built your image successfully with some changes: In the builder: RUN apk add --no-cache git ca-certificates \
&& go get -v github.com/mmatczuk/go-http-tunnel/cmd/tunneldIn the final image: RUN apk add --no-cache openssl ca-certificates
ENV COUNTY="US" \
STATE="New Jersey" \
LOCATION="Piscataway" \
ORGANISATION="Ecample" \
ROOT_CN="Root" \
ISSUER_CN="Example Ltd" \
PUBLIC_CN="example.com" \
ROOT_NAME="root" \
ISSUER_NAME="example" \
PUBLIC_NAME="public" \
RSA_KEY_NUMBITS="2048" \
DAYS="365"
Also, are you sure the env key |
|
Sorry for hijacking.. |
|
@osiloke I really like this but ran into some issues with creating and reading the certs... I mapped Error sample: Also, like @ubergesundheit mentioned, I had to I tried to follow the README.md, but I feel it misses critical build steps that would make this addition even more friendly. |
|
It would make even more sense to use a docker volume to store the certificates or even use certificates obtained from lets encrypt. Create docker image: |
|
Is there a plan to get this published in Docker Hub? |
|
There is a plan to do that yet right now the focus is on streamlining the tunnel usage. Based on that there will be an official docker image. |
|
Some news for this official image? |
|
This is my draft of a very optimized image (4meg). You can remove 'tunnel' for server need (2meg) FROM golang:alpine as builder RUN apk add --update bash git upx && rm -rf /var/cache/apk/* FROM scratch COPY --from=builder /go/bin/tunneld /go/bin/tunneld optionalCOPY --from=builder /go/bin/tunnel /go/bin/tunnel Run it: |