add http socket proxy
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
d9778d34a6
commit
16926137da
14
.drone.yml
14
.drone.yml
|
@ -2,7 +2,7 @@ kind: pipeline
|
|||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
- name: docker-aria2
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: r.sbruder.de
|
||||
|
@ -11,3 +11,15 @@ steps:
|
|||
password:
|
||||
from_secret: docker_password
|
||||
repo: r.sbruder.de/aria2
|
||||
|
||||
- name: docker-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
9
http-socket/Dockerfile
Normal 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"]
|
Reference in a new issue