diff --git a/frp/latest/Dockerfile b/frp/latest/Dockerfile new file mode 100644 index 0000000..ebb4991 --- /dev/null +++ b/frp/latest/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine:3.8 + +MAINTAINER Newnius + +USER root + +# Prerequisites +RUN apk add --no-cache openssl + +# Install frp +ENV VERSION 0.21.0 + +RUN wget -O frp.tar.gz https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_amd64.tar.gz && \ + tar -xzf frp.tar.gz -C / && rm frp.tar.gz + +RUN mv /frp_${VERSION}_linux_amd64 /frp + +WORKDIR /frp + +CMD ["/frp/frps", "-c", "/frp/frps.ini"] diff --git a/frp/latest/README.md b/frp/latest/README.md new file mode 100644 index 0000000..f3fb363 --- /dev/null +++ b/frp/latest/README.md @@ -0,0 +1,31 @@ +# Deploy frps / frpc with docker + +## Start frps + +```bash +docker service create \ + --name frps \ + --hostname frps \ + --network swarm-net \ + --replicas 1 \ + --detach=true \ + --publish 7500:7500 \ + --publish 7000:7000 \ + --mount type=bind,source=/etc/localtime,target=/etc/localtime \ + --mount type=bind,source=/data/frp/frps.ini,target=/frp/frps.ini \ + newnius/frp:v0.21.0 +``` + +## Start frpc + +```bash +docker service create \ + --name frpc \ + --hostname frpc \ + --network swarm-net \ + --replicas 1 \ + --detach=true \ + --mount type=bind,source=/etc/localtime,target=/etc/localtime \ + --mount type=bind,source=/data/frp/frpc.ini,target=/frp/frpc.ini \ + newnius/frp:v0.21.0 +``` diff --git a/git-cli/Dockerfile b/git-cli/Dockerfile new file mode 100644 index 0000000..64d08ca --- /dev/null +++ b/git-cli/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine:3.11 + +MAINTAINER Newnius + +USER root + +RUN apk add --no-cache git + +RUN mkdir /data + +WORKDIR /data diff --git a/git-cli/README.md b/git-cli/README.md new file mode 100644 index 0000000..b6839bd --- /dev/null +++ b/git-cli/README.md @@ -0,0 +1,12 @@ +# Run git client in docker + +## Deploy + +```bash +docker run \ + --name git-cli \ + --mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \ + --mount type=bind,src=/data/,dst=/data/ \ + newnius/git-cli git push origin +``` +