add http socket proxy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-06-01 11:45:53 +00:00
parent d9778d34a6
commit f46e966c5a
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 22 additions and 1 deletions

View file

@ -2,7 +2,7 @@ kind: pipeline
name: default name: default
steps: steps:
- name: docker - name: aria2
image: plugins/docker image: plugins/docker
settings: settings:
registry: r.sbruder.de registry: r.sbruder.de
@ -11,3 +11,15 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
repo: r.sbruder.de/aria2 repo: r.sbruder.de/aria2
- name: http-socket
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
context: http-socket
dockerfile: http-socket/Dockerfile
repo: r.sbruder.de/http-socket

9
http-socket/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM alpine
RUN apk add --no-cache \
socat \
tini
EXPOSE 80
ENTRYPOINT ["tini", "--", "socat", "TCP-LISTEN:80,reuseaddr,fork,su=nobody", "UNIX-CLIENT:/var/run/nginx.sock"]