From 16926137da7c5260118b7ddad8d18ac05b259f65 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 1 Jun 2019 11:45:53 +0000 Subject: [PATCH] add http socket proxy --- .drone.yml | 14 +++++++++++++- http-socket/Dockerfile | 9 +++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 http-socket/Dockerfile diff --git a/.drone.yml b/.drone.yml index 6a330d5..9192085 100644 --- a/.drone.yml +++ b/.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 diff --git a/http-socket/Dockerfile b/http-socket/Dockerfile new file mode 100644 index 0000000..a457a33 --- /dev/null +++ b/http-socket/Dockerfile @@ -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"]