mirror of
https://github.com/teddysun/across.git
synced 2025-01-31 12:19:35 +08:00
Added Brook Docker Image
This commit is contained in:
parent
35b8ec1406
commit
661e21f735
16
docker/brook/Dockerfile
Normal file
16
docker/brook/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Dockerfile for Brook based alpine
|
||||||
|
# Copyright (C) 2019 Teddysun <i@teddysun.com>
|
||||||
|
# Reference URL:
|
||||||
|
# https://github.com/txthinking/brook
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
|
ENV ARGS=
|
||||||
|
|
||||||
|
RUN set -ex \
|
||||||
|
&& BROOK_VER="$(wget --no-check-certificate -qO- https://api.github.com/repos/txthinking/brook/tags | grep 'name' | head -1 | cut -d\" -f4)" \
|
||||||
|
&& BROOK_RELEASE="https://github.com/txthinking/brook/releases/download/${BROOK_VER}/brook" \
|
||||||
|
&& wget -O /usr/bin/brook ${BROOK_RELEASE} && chmod +x /usr/bin/brook
|
||||||
|
|
||||||
|
CMD exec /usr/bin/brook $ARGS
|
36
docker/brook/README.md
Normal file
36
docker/brook/README.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
## Brook Docker Image by Teddysun
|
||||||
|
|
||||||
|
[Brook][1] is a cross-platform proxy/VPN software which can help you get through firewalls.
|
||||||
|
|
||||||
|
Docker images are built for quick deployment in various computing cloud providers.
|
||||||
|
For more information on docker and containerization technologies, refer to [official document][2].
|
||||||
|
|
||||||
|
## Prepare the host
|
||||||
|
|
||||||
|
If you need to install docker by yourself, follow the [official installation guide][3].
|
||||||
|
|
||||||
|
## Pull the image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker pull teddysun/brook
|
||||||
|
```
|
||||||
|
|
||||||
|
This pulls the latest release of Brook.
|
||||||
|
|
||||||
|
It can be found at [Docker Hub][4].
|
||||||
|
|
||||||
|
## Start a container
|
||||||
|
|
||||||
|
You **must set environment variable** `ARGS` at first.
|
||||||
|
There is an example to start a container that listen on port `9000`, password is `password0` (both TCP and UDP) run as a brook server like below:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker run -d -p 9000:9000 -p 9000:9000/udp --name brook --restart=always -e "ARGS=server -l :9000 -p password0" teddysun/brook
|
||||||
|
```
|
||||||
|
|
||||||
|
**Warning**: The port number must be same as environment variable and opened in firewall.
|
||||||
|
|
||||||
|
[1]: https://github.com/txthinking/brook
|
||||||
|
[2]: https://docs.docker.com/
|
||||||
|
[3]: https://docs.docker.com/install/
|
||||||
|
[4]: https://hub.docker.com/r/teddysun/brook/
|
Loading…
x
Reference in New Issue
Block a user