-
Notifications
You must be signed in to change notification settings - Fork 163
Add haproxy 1.8-rc4 #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Closes #48
Diff:$ git --no-pager diff --no-index 1.7/ 1.8-rc/
diff --git a/1.7/Dockerfile b/1.8-rc/Dockerfile
index 44fa2ec..69fbfd8 100644
--- a/1.7/Dockerfile
+++ b/1.8-rc/Dockerfile
@@ -1,15 +1,15 @@
-FROM debian:jessie-backports
+FROM debian:stretch
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
liblua5.3-0 \
libpcre3 \
- libssl1.0.0 \
+ libssl1.1 \
&& rm -rf /var/lib/apt/lists/*
-ENV HAPROXY_MAJOR 1.7
-ENV HAPROXY_VERSION 1.7.9
-ENV HAPROXY_MD5 a2bbbdd45ffe18d99cdcf26aa992f92d
+ENV HAPROXY_MAJOR 1.8
+ENV HAPROXY_VERSION 1.8-rc4
+ENV HAPROXY_MD5 9bf5e689ceda1e5c8ec137042b2b1549
# see http://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments
RUN set -x \
@@ -20,6 +20,7 @@ RUN set -x \
liblua5.3-dev \
libpcre3-dev \
libssl-dev \
+ zlib1g-dev \
make \
wget \
' \
@@ -49,4 +50,4 @@ RUN set -x \
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
-CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+CMD ["haproxy", "-W", "-f", "/usr/local/etc/haproxy/"]
diff --git a/1.7/alpine/Dockerfile b/1.8-rc/alpine/Dockerfile
index f9a2b2d..f42fcf6 100644
--- a/1.7/alpine/Dockerfile
+++ b/1.8-rc/alpine/Dockerfile
@@ -1,8 +1,8 @@
-FROM alpine:3.5
+FROM alpine:3.6
-ENV HAPROXY_MAJOR 1.7
-ENV HAPROXY_VERSION 1.7.9
-ENV HAPROXY_MD5 a2bbbdd45ffe18d99cdcf26aa992f92d
+ENV HAPROXY_MAJOR 1.8
+ENV HAPROXY_VERSION 1.8-rc4
+ENV HAPROXY_MD5 9bf5e689ceda1e5c8ec137042b2b1549
# https://www.lua.org/ftp/#source
ENV LUA_VERSION=5.3.3 \
@@ -77,4 +77,4 @@ RUN set -x \
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
-CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+CMD ["haproxy", "-W", "-f", "/usr/local/etc/haproxy/"]
diff --git a/1.7/alpine/docker-entrypoint.sh b/1.8-rc/alpine/docker-entrypoint.sh
index 1b413a9..06c4dfa 100755
--- a/1.7/alpine/docker-entrypoint.sh
+++ b/1.8-rc/alpine/docker-entrypoint.sh
@@ -6,10 +6,4 @@ if [ "${1#-}" != "$1" ]; then
set -- haproxy "$@"
fi
-if [ "$1" = 'haproxy' ]; then
- # if the user wants "haproxy", let's use "haproxy-systemd-wrapper" instead so we can have proper reloadability implemented by upstream
- shift # "haproxy"
- set -- "$(which haproxy-systemd-wrapper)" -p /run/haproxy.pid "$@"
-fi
-
exec "$@"
diff --git a/1.7/docker-entrypoint.sh b/1.8-rc/docker-entrypoint.sh
index 1b413a9..06c4dfa 100755
--- a/1.7/docker-entrypoint.sh
+++ b/1.8-rc/docker-entrypoint.sh
@@ -6,10 +6,4 @@ if [ "${1#-}" != "$1" ]; then
set -- haproxy "$@"
fi
-if [ "$1" = 'haproxy' ]; then
- # if the user wants "haproxy", let's use "haproxy-systemd-wrapper" instead so we can have proper reloadability implemented by upstream
- shift # "haproxy"
- set -- "$(which haproxy-systemd-wrapper)" -p /run/haproxy.pid "$@"
-fi
-
exec "$@" |
|
I have a question/suggestion: do you think we should put something in the entrypoint script to ensure I added a couple additions to |
+1, since that'd be consistent with our pre-1.8 behavior (of unilaterally adding |
I consider it unlikely that one wants to run haproxy with additional CLI arguments as all the relevant configuration options can be specified in the |
|
@yosifkit @tianon I just added another commit passing the
|
|
Oh 😄, the
|
Yes, I did not want to make unrelated changes in this PR. Poking you into the right direction with my comment worked, though 😁 |
|
Follow-up is in #51 |
- docker, golang, hello-world, mongo, openjdk, python Use new microsoft/windowsservercore tags - ghost `1.18.0` bump - haproxy lua bump: docker-library/haproxy#52, 1.8-rc docker-library/haproxy#49, `-db` docker-library/haproxy#51
Closes #48
haproxy 1.8-rc4 is the first version I found stable enough for use inside of a Docker container. This pull request implements my suggestions I made on #48:
-W)I verified that reloading haproxy works fine in master-worker mode.
According to Willy on the mailing list the final release is not too far off. I'm creating this pull request nonetheless for some early discussion of the changes I did.