From db8e84aee716047c6c13e25ba8bfbf99a5cb83b6 Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 20 Jan 2025 12:07:52 +0800 Subject: [PATCH] add alpaca --- README.md | 3 ++- alpaca/Dockerfile | 19 +++++++++++++++++++ alpaca/README.md | 17 +++++++++++++++++ alpaca/docker-compose.yml | 7 +++++++ 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 alpaca/Dockerfile create mode 100644 alpaca/README.md create mode 100644 alpaca/docker-compose.yml diff --git a/README.md b/README.md index d2aa669..e29070a 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ A collection of delicious docker recipes. ## Proxy +- [x] alpaca - [x] dante - [x] delegated - [x] fteproxy :+1: @@ -530,7 +531,7 @@ A collection of delicious docker recipes. - [x] teamatldocker - [x] confluence - [x] jira -- [x] joseluisq/static-web-server +- [x] ghcr.io/static-web-server/static-web-server - [x] openstitching/stitch - [x] strapi/strapi - [x] amancevice/superset diff --git a/alpaca/Dockerfile b/alpaca/Dockerfile new file mode 100644 index 0000000..57ecbee --- /dev/null +++ b/alpaca/Dockerfile @@ -0,0 +1,19 @@ +# +# Dockerfile for alpaca +# + +FROM alpine:3 +MAINTAINER EasyPi Software Foundation + +ARG ALPACA_VERSION=v2.0.9 +ARG ALPACA_FILE=alpaca_${ALPACA_VERSION}_linux-amd64 +ARG ALPACA_URL=https://github.com/samuong/alpaca/releases/download/$ALPACA_VERSION/$ALPACA_FILE + +ADD $ALPACA_URL /usr/local/bin/alpaca + +RUN set -xe \ + && apk add --no-cache gcompat \ + && chmod +x /usr/local/bin/alpaca \ + && alpaca -version + +ENTRYPOINT ["alpaca", "-l", "0.0.0.0", "-p", "3128"] diff --git a/alpaca/README.md b/alpaca/README.md new file mode 100644 index 0000000..13a445a --- /dev/null +++ b/alpaca/README.md @@ -0,0 +1,17 @@ +alpaca +====== + +[Alpaca][1] is a local HTTP proxy for command-line tools. It supports proxy auto-configuration (PAC) files and NTLM authentication. + +Sample proxy.pac + +```javascript +function FindProxyForURL(url, host) { + return "DIRECT"; +} +``` + +Read [this][2] to create your own. + +[1]: https://github.com/samuong/alpaca +[2]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file diff --git a/alpaca/docker-compose.yml b/alpaca/docker-compose.yml new file mode 100644 index 0000000..591dc2c --- /dev/null +++ b/alpaca/docker-compose.yml @@ -0,0 +1,7 @@ +services: + alpaca: + image: vimagick/alpaca + command: -C http://url-to-proxy.pac + ports: + - "3128:3128" + restart: unless-stopped