-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ChurchDesk/docker-flow-proxy
- Loading branch information
Showing
53 changed files
with
966 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM golang:1.9.6 AS build | ||
FROM golang:1.11.0-alpine AS build | ||
ADD . /src | ||
WORKDIR /src | ||
RUN go get -d -v -t | ||
RUN go test --cover ./... --run UnitTest | ||
RUN go build -v -o docker-flow-proxy | ||
RUN set -x \ | ||
&& apk add --update --no-cache --no-progress git g++ \ | ||
&& go get -d -v \ | ||
&& go test --cover ./... --run UnitTest \ | ||
&& go build -v -o docker-flow-proxy | ||
|
||
|
||
FROM haproxy:1.8.8-alpine | ||
MAINTAINER Viktor Farcic <[email protected]> | ||
FROM haproxy:1.8.13-alpine | ||
LABEL org.opencontainers.image.title="Docker Flow Proxy" \ | ||
org.opencontainers.image.description="Automated HAProxy Reverse Proxy for Docker" \ | ||
org.opencontainers.image.url="https://proxy.dockerflow.com" \ | ||
org.opencontainers.image.licenses="MIT" \ | ||
org.opencontainers.image.authors="Viktor Farcic <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/docker-flow/docker-flow-proxy" | ||
|
||
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | ||
RUN mkdir -p /cfg/tmpl /templates /certs /logs | ||
RUN apk --update --no-cache --no-progress add tini \ | ||
&& mkdir -p /cfg/tmpl /templates /certs /logs | ||
|
||
ENV CERTS="" \ | ||
CAPTURE_REQUEST_HEADER="" \ | ||
|
@@ -39,21 +46,20 @@ ENV CERTS="" \ | |
TIMEOUT_HTTP_REQUEST="5" TIMEOUT_HTTP_KEEP_ALIVE="15" TIMEOUT_CLIENT="20" TIMEOUT_CONNECT="5" TIMEOUT_QUEUE="30" TIMEOUT_SERVER="20" TIMEOUT_TUNNEL="3600" \ | ||
USERS="" \ | ||
SKIP_ADDRESS_VALIDATION="true" \ | ||
SSL_BIND_OPTIONS="no-sslv3" SSL_BIND_CIPHERS="ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS" | ||
SSL_BIND_OPTIONS="no-sslv3" \ | ||
SSL_BIND_CIPHERS="ECDH+AESGCM:ECDH+CHACHA20:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS" | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 | ||
EXPOSE 8080 | ||
EXPOSE 80 \ | ||
443 \ | ||
8080 | ||
|
||
RUN apk --no-cache add tini | ||
ENTRYPOINT ["/sbin/tini", "-g", "--"] | ||
CMD ["docker-flow-proxy", "server"] | ||
HEALTHCHECK --interval=5s --start-period=3s --timeout=10s CMD check.sh | ||
|
||
COPY scripts/check.sh /usr/local/bin/check.sh | ||
RUN chmod +x /usr/local/bin/check.sh | ||
COPY errorfiles /errorfiles | ||
COPY haproxy.cfg /cfg/haproxy.cfg | ||
COPY haproxy.tmpl /cfg/tmpl/haproxy.tmpl | ||
COPY --from=build /src/docker-flow-proxy /usr/local/bin/docker-flow-proxy | ||
RUN chmod +x /usr/local/bin/docker-flow-proxy | ||
RUN chmod +x /usr/local/bin/docker-flow-proxy /usr/local/bin/check.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM dockerflow/docker-flow-proxy-test-base | ||
FROM thomasjpfan/docker-flow-proxy-test-base | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
RUN chmod +x /src/run-tests.sh | ||
RUN go get -d -v -t | ||
RUN go get -d -v | ||
|
||
CMD ["sh", "-c", "/src/run-tests.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
FROM golang:1.8 | ||
FROM golang:1.11.0-alpine3.8 | ||
|
||
MAINTAINER Viktor Farcic <[email protected]> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y apt-transport-https ca-certificates curl software-properties-common expect && \ | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \ | ||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \ | ||
apt-get update && \ | ||
apt-get -y install docker-ce | ||
RUN apk add --no-cache --update git docker gcc libc-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.